Skip to content

Commit

Permalink
Report code coverage to codecov on Travis CI (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse committed Aug 27, 2018
1 parent 89682c8 commit b77f5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ install:
#- (cd cordova-fetch && npm install && npm link ../cordova-common)

script:
- "npm test"
- npm run cover
- npm run report-coverage
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"eslint": "eslint src spec integration-tests",
"unit-tests": "jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
"cover": "nyc -x spec/ -x integration-tests/ npm test",
"report-coverage": "nyc report -r text-lcov > coverage.lcov && codecov",
"e2e-tests": "jasmine JASMINE_CONFIG_PATH=integration-tests/jasmine.json"
},
"contributors": [
Expand Down

0 comments on commit b77f5ae

Please sign in to comment.