update circle config coverage check
parent
9dfd31da10
commit
313e92b1c3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue