Skip to content

Commit 8a27d22

Browse files
committed
Travis: skip coverage with pypy*
1 parent 1638f6e commit 8a27d22

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ matrix:
1111
- python: 3.6
1212
env: TOXENV=py36-dj20-postgres
1313
- python: 3.6
14-
env: TOXENV=py36-dj111-postgres
14+
env: TOXENV=py36-dj111-sqlite
1515
- python: 3.6
1616
env: TOXENV=py36-checkqa
1717

1818
- python: 3.5
1919
env: TOXENV=py35-dj110-postgres
2020

2121
- python: 3.4
22-
env: TOXENV=py34-dj19-postgres
22+
env: TOXENV=py34-dj19-sqlite_file
2323

2424
- python: 2.7
2525
env: TOXENV=py27-dj111-mysql_innodb
@@ -30,9 +30,9 @@ matrix:
3030
- python: 2.7
3131
env: TOXENV=py27-checkqa
3232

33+
# pypy/pypy3: not included with coverage reports (much slower then).
3334
- python: pypy
3435
env: TOXENV=pypy-dj111-sqlite_file
35-
3636
- python: pypy3
3737
env: TOXENV=pypy3-dj110-sqlite
3838

@@ -57,9 +57,13 @@ install:
5757

5858
- pip install tox==2.9.1
5959
- |
60-
if [[ "${TOXENV%-checkqa}" == "$TOXENV" ]]; then
60+
# Setup coverage tracking, but not with "checkqa" nor "pypy*".
61+
if [[ "${TOXENV%-checkqa}" == "$TOXENV" ]] && [[ "${TOXENV#pypy}" == "$TOXENV" ]]; then
62+
PYTEST_DJANGO_COVERAGE=1
6163
export PYTEST_ADDOPTS='--cov=pytest_django --cov=tests --cov=pytest_django_test --cov-report=term-missing:skip-covered'
6264
export _PYTESTDJANGO_TOX_EXTRA_DEPS=pytest-cov
65+
else
66+
PYTEST_DJANGO_COVERAGE=0
6367
fi
6468
6569
script:
@@ -68,7 +72,7 @@ script:
6872
after_success:
6973
- |
7074
set -ex
71-
if [[ "${TOXENV%-checkqa}" == "$TOXENV" ]]; then
75+
if [[ "$PYTEST_DJANGO_COVERAGE" = 1 ]]; then
7276
pip install codecov
7377
7478
coverage combine

0 commit comments

Comments
 (0)