|
64 | 64 | - OPENBLAS_NUM_THREADS=1
|
65 | 65 | - PYTHONFAULTHANDLER=1
|
66 | 66 | - PYTEST_ADDOPTS="-raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
|
| 67 | + - RUN_PYTEST=1 |
67 | 68 | - RUN_FLAKE8=
|
68 | 69 |
|
69 | 70 | matrix:
|
70 | 71 | include:
|
71 |
| - - python: 3.5 |
72 |
| - dist: trusty |
73 |
| - # pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124. |
| 72 | + - name: flake8 |
| 73 | + python: 3.6 |
74 | 74 | env:
|
75 |
| - - PINNEDVERS='-c requirements/testing/travis35.txt' |
| 75 | + - RUN_PYTEST= |
| 76 | + - RUN_FLAKE8=1 |
| 77 | + - EXTRAREQS='-r requirements/testing/travis_flake8.txt' |
| 78 | +# - python: 3.5 |
| 79 | +# dist: trusty |
| 80 | +# # pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124. |
| 81 | +# env: |
| 82 | +# - PINNEDVERS='-c requirements/testing/travis35.txt' |
76 | 83 | - python: 3.6
|
77 | 84 | env:
|
78 | 85 | - DELETE_FONT_CACHE=1
|
79 | 86 | - EXTRAREQS='-r requirements/testing/travis36.txt'
|
80 |
| - - RUN_FLAKE8=1 |
81 |
| - - python: 3.7 |
82 |
| - sudo: true |
83 |
| - - python: "nightly" |
84 |
| - env: PRE=--pre |
85 |
| - - os: osx |
86 |
| - language: generic # https://github.com/travis-ci/travis-ci/issues/2312 |
87 |
| - only: master |
88 |
| - cache: |
89 |
| - # As for now travis caches only "$HOME/.cache/pip" |
90 |
| - # https://docs.travis-ci.com/user/caching/#pip-cache |
91 |
| - pip: false |
92 |
| - directories: |
93 |
| - - $HOME/Library/Caches/pip |
94 |
| - # `cache` does not support `env`-like `global` so copy-paste from top |
95 |
| - - $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853 |
96 |
| - - $HOME/.cache/matplotlib |
97 |
| - allow_failures: |
98 |
| - - python: "nightly" |
| 87 | +# - python: 3.7 |
| 88 | +# sudo: true |
| 89 | +# - python: "nightly" |
| 90 | +# env: PRE=--pre |
| 91 | +# - os: osx |
| 92 | +# language: generic # https://github.com/travis-ci/travis-ci/issues/2312 |
| 93 | +# only: master |
| 94 | +# cache: |
| 95 | +# # As for now travis caches only "$HOME/.cache/pip" |
| 96 | +# # https://docs.travis-ci.com/user/caching/#pip-cache |
| 97 | +# pip: false |
| 98 | +# directories: |
| 99 | +# - $HOME/Library/Caches/pip |
| 100 | +# # `cache` does not support `env`-like `global` so copy-paste from top |
| 101 | +# - $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853 |
| 102 | +# - $HOME/.cache/matplotlib |
| 103 | +# allow_failures: |
| 104 | +# - python: "nightly" |
99 | 105 |
|
100 | 106 | before_install: |
|
101 | 107 | # test with non-ascii in path
|
@@ -162,8 +168,10 @@ script:
|
162 | 168 | # each script we want to run need to go in it's own section and the program you want
|
163 | 169 | # to fail travis need to be the last thing called
|
164 | 170 | - |
|
165 |
| - echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS" |
166 |
| - python -mpytest |
| 171 | + if [[ $RUN_PYTEST == 1 ]]; then |
| 172 | + echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS" |
| 173 | + python -mpytest |
| 174 | + fi |
167 | 175 | - |
|
168 | 176 | if [[ $RUN_FLAKE8 == 1 ]]; then
|
169 | 177 | flake8 --statistics && echo "Flake8 passed without any issues!"
|
|
0 commit comments