Skip to content

Commit

Permalink
Merge pull request #53 from hardikj/coverall
Browse files Browse the repository at this point in the history
Split coverage and coveralls scripts for local coverage use
  • Loading branch information
earldouglas committed Jan 9, 2015
2 parents 2ad8194 + cb96495 commit 1b1d29b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
coverage/
.coveralls.yml
node_modules
npm-debug.log
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,4 +14,4 @@ notifications:
email:
- services@wikimedia.org

script: npm run-script coverage
script: npm run-script coverage && npm run-script coveralls
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,8 @@
},
"scripts": {
"test": "mocha",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"coverage": "istanbul cover _mocha -- -R spec",
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"devDependencies": {
"mocha": "x.x.x",
Expand Down

0 comments on commit 1b1d29b

Please sign in to comment.