Skip to content

Commit

Permalink
Only send coverage data when tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
zhusee2 committed Oct 26, 2017
1 parent b0dcf91 commit 5d9ba64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ before_script:
script:
- yarn test

# Send coverage data to Coveralls
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

before_deploy:
- npm config set //registry.npmjs.org/:_authToken=\${NPM_TOKEN}

Expand All @@ -35,10 +39,6 @@ deploy:
on:
branch: master

# Send coverage data to Coveralls
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

branches:
only:
- master
Expand Down

0 comments on commit 5d9ba64

Please sign in to comment.