Skip to content

Commit

Permalink
ci(coverage): fix coverage reporting
Browse files Browse the repository at this point in the history
Modify npm script "report-coverage" to first run the tests and only then report the coverage to
coveralls
  • Loading branch information
Voellmy Raphael authored and Voellmy Raphael committed Nov 27, 2020
1 parent 7aa6632 commit 0d74f58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
deploy:
provider: script
skip_cleanup: true
script: yarn deploy-pages && yarn semantic-release
script: yarn report-coverage && yarn deploy-pages && yarn semantic-release

branches:
except:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"test:prod": "run-s lint test",
"deploy-pages": "run-s build publish-pages",
"publish-pages": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"report-coverage": "run-s test publish-coverage",
"publish-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"semantic-release": "semantic-release",
"precommit": "lint-staged"
Expand Down

0 comments on commit 0d74f58

Please sign in to comment.