Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Only send test coverage to coveralls when running tests from travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaupin committed Jul 20, 2017
1 parent 056c7d0 commit 4e88f02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ node_js:
# Node v0.10 is installed by default, but >= v4 is required for yarn. "node" will install the latest stable version
# https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#Travis-CI-supports-yarn
- "node"
after_script:
# Send test coverage data to coveralls.io
- "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"scripts": {
"lint": "eslint src",
"test": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
"test": "jest --coverage"
},
"version": "0.0.1"
}

0 comments on commit 4e88f02

Please sign in to comment.