Skip to content

Commit 69a41e6

Browse files
committed
ci: Travis: no coverage by default
1 parent 86070f0 commit 69a41e6

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.travis.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ install:
1212
- python -m pip install --upgrade --pre tox
1313
env:
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

2525
matrix:
2626
allow_failures:
@@ -30,9 +30,9 @@ matrix:
3030
jobs:
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
@@ -60,7 +60,7 @@ jobs:
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

@@ -72,7 +72,6 @@ jobs:
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:
@@ -88,7 +87,7 @@ jobs:
8887

8988
before_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

10099
after_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

Comments
 (0)