update circle config coverage check

pull/1672/head
gabrielburnworth 2020-01-28 11:34:38 -08:00
parent 9dfd31da10
commit 313e92b1c3
1 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ commands:
name: Run JS tests name: Run JS tests
command: | command: |
sudo docker-compose run web npm run test-very-slow -- -c .circleci/jest-ci.config.js sudo docker-compose run web npm run test-very-slow -- -c .circleci/jest-ci.config.js
echo 'export COVERAGE_AVAILABLE=true' >> $BASH_ENV
lint-commands: lint-commands:
steps: steps:
- run: - run:
@ -74,7 +75,7 @@ commands:
- run: - run:
name: Report coverage to Coveralls name: Report coverage to Coveralls
command: | command: |
if [ -f /home/circleci/project/coverage_fe/lcov.info ] if [ "$COVERAGE_AVAILABLE" ]
then then
sudo docker-compose run -e COVERALLS_REPO_TOKEN=lEX6nkql7y2YFCcIXVq5ORvdvMtYzfZdG web npm run coverage sudo docker-compose run -e COVERALLS_REPO_TOKEN=lEX6nkql7y2YFCcIXVq5ORvdvMtYzfZdG web npm run coverage
fi fi