Skip to content

Commit 97a3758

Browse files
committed
use coverall
1 parent 63c76b8 commit 97a3758

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ language: node_js
33
node_js:
44
- "0.10"
55
- "0.12"
6+
script: npm run travis
67
env:
78
- NO_WATCH_TESTS=1

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@
3030
"bundle-loader": "~0.5.0",
3131
"coffee-loader": "~0.7.1",
3232
"component-webpack-plugin": "~0.2.0",
33+
"coveralls": "^2.11.2",
3334
"css-loader": "~0.9.0",
3435
"eslint": "^0.19.0",
3536
"express": "~3.4.8",
3637
"extract-text-webpack-plugin": "~0.3.0",
3738
"file-loader": "~0.8.0",
3839
"i18n-webpack-plugin": "~0.2.0",
40+
"istanbul": "^0.3.13",
3941
"jade-loader": "~0.7.0",
4042
"json-loader": "~0.5.1",
4143
"less-loader": "^2.0.0",
4244
"microtime": "^1.2.0",
4345
"mocha": "~2.1.0",
46+
"mocha-lcov-reporter": "0.0.2",
4447
"raw-loader": "~0.5.0",
4548
"script-loader": "~0.6.0",
4649
"should": "^4.6.0",
@@ -71,6 +74,7 @@
7174
],
7275
"scripts": {
7376
"test": "eslint lib && mocha --reporter spec",
77+
"travis": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
7478
"lint": "eslint lib",
7579
"cover": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
7680
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"

0 commit comments

Comments
 (0)