Skip to content

Commit

Permalink
Simplify cover and coveralls scripts for local and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dsernst committed Sep 3, 2015
1 parent 4ff3827 commit ec5bd54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
@@ -1,7 +1,5 @@
language: node_js
node_js:
- "stable"
before_script:
- npm install -g istanbul
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
- npm run coveralls
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -4,8 +4,9 @@
"description": "Generate Pythagorean triples using Euclid's formula",
"main": "index.js",
"scripts": {
"test": "./node_modules/mocha/bin/mocha",
"coverage": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha"
"test": "mocha",
"cover": "istanbul cover _mocha",
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ec5bd54

Please sign in to comment.