Merge pull request #4368 from blueyed/toxenv-coverage

Travis: use coverage from existing tox env  [skip appveyor]
This commit is contained in:
Bruno Oliveira 2018-11-11 11:57:20 -02:00 committed by GitHub
commit 7b833ce5f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ after_success:
- |
if [[ "$PYTEST_NO_COVERAGE" != 1 ]]; then
set -e
pip install coverage
# Add first TOXENV to $PATH.
PATH="$PWD/.tox/${TOXENV%%,*}/bin:$PATH"
coverage combine
coverage xml --ignore-errors
coverage report -m --ignore-errors