Skip to content

Commit

Permalink
Added after_success script.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrafael committed Jul 22, 2019
1 parent 0e4c82f commit d31c54c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ cache:
before_script:
- npm install && npm install coveralls mocha-lcov-reporter --save-dev
script:
- npm run test:travis
- npm test
after_success:
- nyc report --reporter=text-lcov | coveralls
notifications:
email:
on_success: never
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
},
"scripts": {
"test": "nyc --reporter=text-summary mocha --opts test/mocha.opts test/*.spec.js",
"test:cov": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/*.spec.js",
"test:travis": "mocha --opts test/mocha.opts test/*.spec.js && nyc report --reporter=text-lcov | coveralls"
"test:cov": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/*.spec.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d31c54c

Please sign in to comment.