Skip to content

Commit 00ea101

Browse files
authored
Merge pull request #20 from fac-12/travis-setup
#19 setup travis
2 parents 5c59ae0 + 75b7bc4 commit 00ea101

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "node"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# homesafe
2+
[![Build Status](https://travis-ci.org/fac-12/homesafe.svg?branch=master)](https://travis-ci.org/fac-12/homesafe)
23

34
By Fatimat, Dragomir, Kitty and Sophie.
45

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A web application for parents to notify schools if someone other than the usual guardian will be picking the child up from school",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
7+
"test": "NODE_ENV=test node tests/testdb.js | tap-spec",
88
"babel": "babel index.js -d build",
99
"babelWatch": "babel index.js --watch --out-file build/index.js",
1010
"start": "node ./src/index.js",

tests/testdb.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const test = require('tape');
2+
3+
test('tape is working', (t) => {
4+
const num = 2;
5+
t.equal(num, 2, 'should return 2');
6+
t.end();
7+
})

0 commit comments

Comments
 (0)