Skip to content

Commit 4aa6946

Browse files
author
jwadhwani
committed
Added CI
1 parent 07b84d2 commit 4aa6946

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.idea/
33
/scratch
44
/perf-test
5+
/coverage
56
/npm-debug.log

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ node_js:
44
- "5.6"
55
- "4.3"
66
- "0.12"
7-
- "0.10"
7+
- "0.10"
8+
9+
script: "npm run-script test-travis"
10+
# Send coverage data to Coveralls
11+
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"compile": "babel --source-maps -d lib/ src/",
88
"prepublish": "npm run compile",
9-
"test": "make test"
9+
"test": "./node_modules/mocha/bin/mocha ./test/*",
10+
"test-travis": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test/*"
1011
},
1112
"author": {
1213
"name": "Jayesh Wadhwani",
@@ -17,10 +18,12 @@
1718
"babel-cli": "^6.5.1",
1819
"babel-preset-es2015": "^6.5.0",
1920
"chai": "^3.5.0",
20-
"mocha": "^2.4.5"
21-
},
22-
"dependencies": {
21+
"coveralls": "^2.11.6",
22+
"istanbul": "^0.4.2",
23+
"mocha": "^2.4.5",
24+
"mocha-lcov-reporter": "^1.2.0"
2325
},
26+
"dependencies": {},
2427
"directories": {
2528
"example": "examples",
2629
"test": "test"
@@ -29,12 +32,13 @@
2932
"type": "git",
3033
"url": "https://github.com/jwadhwani/simple-series-parallel.git"
3134
},
32-
"engines" : { "node" : ">=0.10.3" },
35+
"engines": {
36+
"node": ">=0.10.3"
37+
},
3338
"keywords": [
3439
"async",
3540
"asynchronous",
3641
"series",
3742
"parallel"
3843
]
3944
}
40-

0 commit comments

Comments
 (0)