Skip to content

Commit 7dbc63c

Browse files
committed
Travis: use SKIP_COVERAGE to skip coverage
1 parent fee5517 commit 7dbc63c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727

2828
# pypy/pypy3: not included with coverage reports (much slower then).
2929
- python: pypy
30-
env: TOXENV=pypy-dj111-sqlite_file
30+
env: TOXENV=pypy-dj111-sqlite_file SKIP_COVERAGE=1
3131
- python: pypy3
32-
env: TOXENV=pypy3-dj110-sqlite
32+
env: TOXENV=pypy3-dj110-sqlite SKIP_COVERAGE=1
3333

3434
- python: 3.6
35-
env: TOXENV=checkqa,docs
35+
env: TOXENV=checkqa,docs SKIP_COVERAGE=1
3636

3737
- stage: PyPI Release
3838
if: tag IS present
@@ -65,8 +65,8 @@ install:
6565

6666
- pip install tox==2.9.1
6767
- |
68-
# Setup coverage tracking, but not with "checkqa" nor "pypy*".
69-
if [[ "$TOXENV" != "checkqa" ]] && [[ "${TOXENV#pypy}" == "$TOXENV" ]]; then
68+
# Setup coverage tracking.
69+
if [[ "$SKIP_COVERAGE" != "1" ]]; then
7070
PYTEST_DJANGO_COVERAGE=1
7171
export PYTEST_ADDOPTS='--cov=pytest_django --cov=tests --cov=pytest_django_test --cov-report=term-missing:skip-covered'
7272
export _PYTESTDJANGO_TOX_EXTRA_DEPS=pytest-cov

0 commit comments

Comments
 (0)