Skip to content

Commit

Permalink
update coverage on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Yang committed Apr 18, 2019
1 parent d92b935 commit 52ddc9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- run:
name: test-with-coverage
command: npm run test_prod
- run:
name: update-coverage
command: npx codecov --token=2d13016a-614b-4266-8f83-aeffbece3d61
- store_test_results:
path: test-result
- store_artifacts:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "node -r ts-node/register src/main.ts",
"test": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --detectOpenHandles",
"test_prod": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --bail --ci --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --coverage && codecov --token=2d13016a-614b-4266-8f83-aeffbece3d61",
"test_prod": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --bail --ci --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --coverage",
"dev": "cross-env CONF_PATH=./adapters-dev DEBUG=server:* nodemon -r ts-node/register src/main.ts",
"dev_start": "cross-env DEBUG=server:* node -r ts-node/register src/main.ts",
"dist_start": "npm run build && node dist/main.js",
Expand Down

0 comments on commit 52ddc9c

Please sign in to comment.