Problem: Code codecoverage does not work (#2355).

* Problem: Code coverage does not work.
* Solution: Fix the code coverage script.
This commit is contained in:
codegeschrei 2018-06-19 10:58:12 +02:00 committed by Lev Berman
parent 971efb5f1c
commit 119dcef75f
2 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,6 @@
set -e -x
if [[ -z ${TOXENV} ]]; then
codecov -v
if [[ -z ${TOXENV} ]] && [[ ${BIGCHAINDB_CI_ABCI} != 'enable' ]] && [[ ${BIGCHAINDB_ACCEPTANCE_TEST} != 'enable' ]]; then
codecov -v -f htmlcov/coverage.xml
fi

View File

@ -9,5 +9,5 @@ elif [[ ${BIGCHAINDB_CI_ABCI} == 'enable' ]]; then
elif [[ ${BIGCHAINDB_ACCEPTANCE_TEST} == 'enable' ]]; then
./run-acceptance-test.sh
else
docker-compose exec bigchaindb pytest -v --cov=bigchaindb
docker-compose exec bigchaindb pytest -v --cov=bigchaindb --cov-report xml:htmlcov/coverage.xml
fi