Skip to content

Commit 8308b87

Browse files
committed
Move coverage into it's own target
1 parent 2a616d2 commit 8308b87

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
sudo: false
12
language: node_js
23
node_js:
34
- iojs
45
- 0.12
56
- 0.10
7+
script: npm run cover
68
after_success: cat coverage/lcov.info | node_modules/.bin/coveralls --verbose

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"scripts": {
2525
"clean": "rimraf coverage/",
2626
"lint": "jscs index.js test/ & jshint index.js test/",
27-
"pretest": "npm run clean && npm run lint",
28-
"test": "istanbul cover _mocha"
27+
"pretest": "npm run lint",
28+
"test": "mocha",
29+
"precover": "npm run lint && npm run clean",
30+
"cover": "istanbul cover _mocha"
2931
},
3032
"repository": {
3133
"type": "git",

0 commit comments

Comments
 (0)