@@ -12,15 +12,15 @@ install:
1212 - python -m pip install --upgrade --pre tox
1313env :
1414 matrix :
15- - TOXENV=py27
15+ - TOXENV=py27 PYTEST_COVERAGE=1
1616 # Specialized factors for py27.
17- - TOXENV=py27-nobyte
18- - TOXENV=py27-xdist
19- - TOXENV=py27-pluggymaster-xdist PYTEST_NO_COVERAGE=1
17+ - TOXENV=py27-nobyte PYTEST_COVERAGE=1
18+ - TOXENV=py27-xdist PYTEST_COVERAGE=1
19+ - TOXENV=py27-pluggymaster-xdist
2020 # Specialized factors for py37.
2121 - TOXENV=py37-pexpect,py37-trial,py37-numpy
22- - TOXENV=py37-pluggymaster-xdist PYTEST_NO_COVERAGE=1
23- - TOXENV=py37-freeze PYTEST_NO_COVERAGE=1
22+ - TOXENV=py37-pluggymaster-xdist
23+ - TOXENV=py37-freeze
2424
2525matrix :
2626 allow_failures :
@@ -30,9 +30,9 @@ matrix:
3030jobs :
3131 include :
3232 # Coverage tracking is slow with pypy, skip it.
33- - env : TOXENV=pypy-xdist PYTEST_NO_COVERAGE=1
33+ - env : TOXENV=pypy-xdist
3434 python : ' pypy2.7-6.0'
35- - env : TOXENV=pypy3-xdist PYTEST_NO_COVERAGE=1
35+ - env : TOXENV=pypy3-xdist
3636 python : ' pypy3.5-6.0'
3737
3838 - env : TOXENV=py34-xdist
6060 - test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
6161
6262 # Jobs only run via Travis cron jobs (currently daily).
63- - env : TOXENV=py38-xdist PYTEST_NO_COVERAGE=1
63+ - env : TOXENV=py38-xdist
6464 python : ' 3.8-dev'
6565 if : type = cron
6666
7272
7373 - stage : deploy
7474 python : ' 3.6'
75- env : PYTEST_NO_COVERAGE=1
7675 install : pip install -U setuptools setuptools_scm
7776 script : skip
7877 deploy :
8887
8988before_script :
9089 - |
91- if [[ "$PYTEST_NO_COVERAGE" ! = 1 ]]; then
90+ if [[ "$PYTEST_COVERAGE" = 1 ]]; then
9291 export COVERAGE_FILE="$PWD/.coverage"
9392 export COVERAGE_PROCESS_START="$PWD/.coveragerc"
9493 export _PYTEST_TOX_COVERAGE_RUN="coverage run -m"
@@ -99,7 +98,7 @@ script: tox --recreate
9998
10099after_success :
101100 - |
102- if [[ "$PYTEST_NO_COVERAGE" ! = 1 ]]; then
101+ if [[ "$PYTEST_COVERAGE" = 1 ]]; then
103102 set -e
104103 # Add last TOXENV to $PATH.
105104 PATH="$PWD/.tox/${TOXENV##*,}/bin:$PATH"
0 commit comments