Travis: fix reporting of coverage (#211)

This commit is contained in:
Daniel Hahler 2018-08-30 22:35:13 +02:00 committed by GitHub
parent 9dcb47dc55
commit cfdaf6caca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ install:
script: tox -v
after_success:
- |
if [[ "${TOXENV#-coverage}" != "$TOXENV" ]]; then
if [[ "${TOXENV%-coverage}" != "$TOXENV" ]]; then
pip install codecov
coverage xml
codecov --required -X gcov fix pycov -f coverage.xml --flags ${TOXENV//-/ }