Skip to content

Commit 8faf167

Browse files
committed
Add test coverage to ci build
1 parent e8d1387 commit 8faf167

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
language: node_js
22
node_js:
33
- node
4+
after_success: 'npm run test:coveralls'

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"prepublish": "npm run build",
1313
"test": "mocha \"src/**/*spec.js\" --recursive --compilers js:babel-register",
1414
"test:coverage": "babel-node ./node_modules/.bin/babel-istanbul cover _mocha -- \"src/**/*spec.js\" --recursive --compilers js:babel-register",
15+
"test:coveralls": "npm run test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
1516
"test:watch": "npm test -- -w"
1617
},
1718
"author": "Matt Phillips",
@@ -25,6 +26,7 @@
2526
"babel-preset-es2015": "^6.18.0",
2627
"babel-preset-stage-0": "^6.16.0",
2728
"chai": "^3.5.0",
29+
"coveralls": "^2.11.15",
2830
"mocha": "^3.1.2",
2931
"mocha-each": "^1.0.3"
3032
},

0 commit comments

Comments
 (0)