Skip to content

Commit

Permalink
add cover.
Browse files Browse the repository at this point in the history
  • Loading branch information
keelii committed Feb 21, 2016
1 parent bb9065f commit dff9f8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config.gypi
CVS
npm-debug.log
.idea
coverage
.vscode
node_modules
typings
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- "4.3.1"
script:
- istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
- ./node_modules/.bin/codecov
after_success:
- npm run cover
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"scripts": {
"prepublish": "",
"cover": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && ./node_modules/.bin/codecov",
"test": "./node_modules/.bin/mocha test/main.js --reporter spec"
},
"repository": {
Expand Down Expand Up @@ -41,6 +42,7 @@
},
"devDependencies": {
"codecov": "^1.0.1",
"istanbul": "^0.4.2",
"mocha": "^2.4.5"
}
}

0 comments on commit dff9f8c

Please sign in to comment.