diff --git a/.travis.yml b/.travis.yml index 58c7e67519d..54625f9d20a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -98,14 +98,22 @@ before_script: export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess fi -script: tox --recreate +script: + - tox --recreate + + - | + # Cover terminalreport for isatty. + # Add last TOXENV to $PATH (also used below). + PATH="$PWD/.tox/${TOXENV##*,}/bin:$PATH" + python -c 'import sys; assert sys.stdout.isatty()' + # if [[ "$PYTEST_COVERAGE" = 1 ]]; then + # coverage run -m pytest --help + # fi after_success: - | if [[ "$PYTEST_COVERAGE" = 1 ]]; then set -e - # Add last TOXENV to $PATH. - PATH="$PWD/.tox/${TOXENV##*,}/bin:$PATH" coverage combine coverage xml coverage report -m