From 825085f699f79030475f1632dc4a549b7ad4d45b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 10 Nov 2018 23:53:47 +0100 Subject: [PATCH] Travis: use coverage from existing tox env [skip appveyor] --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 00abca0b2..aa56d0e39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -88,7 +88,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