Skip to content

Commit

Permalink
Cleaner coverage reports with package.json coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
matiassingers committed Jun 2, 2015
1 parent 7da60aa commit a7f5d99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
- 'iojs'

script: 'npm run coverage'

after_success:
- istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "extract metadata and provisioning information about an .ipa file",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec"
},
"engines": {
"node": ">=0.10.0"
Expand Down

0 comments on commit a7f5d99

Please sign in to comment.