6262 - NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
6363 - OPENBLAS_NUM_THREADS=1
6464 - PYTHONFAULTHANDLER=1
65- - RUN_PYTEST=1
66- - RUN_FLAKE8=
6765
6866matrix :
6967 include :
70- - name : flake8
71- python : 3.6
72- env :
73- - RUN_PYTEST=
74- - RUN_FLAKE8=1
75- - EXTRAREQS='-r requirements/testing/travis_flake8.txt'
7668 - python : 3.6
7769 env :
7870 - PINNEDVERS='-c requirements/testing/travis36minver.txt'
@@ -165,13 +157,13 @@ install:
165157
166158 # Set flag in a delayed manner to avoid issues with installing other packages
167159 - |
168- if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]] ; then
160+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
169161 export CPPFLAGS=--coverage
170162 fi
171163 - |
172164 python -mpip install -ve . # Install Matplotlib.
173165 - |
174- if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]] ; then
166+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
175167 unset CPPFLAGS
176168 fi
177169
@@ -184,16 +176,10 @@ script:
184176 # Each script we want to run need to go in its own section and the program
185177 # you want to fail travis needs to be the last thing called.
186178 - |
187- if [[ $RUN_PYTEST == 1 ]]; then
188- # The number of processes is hardcoded (-n2), because using too many
189- # causes the Travis VM to run out of memory (since so many copies of
190- # inkscape and ghostscript are running at the same time).
191- python -mpytest -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n2 --log-level=DEBUG
192- fi
193- - |
194- if [[ $RUN_FLAKE8 == 1 ]]; then
195- flake8 --docstring-convention=all --statistics && echo "Flake8 passed without any issues!"
196- fi
179+ # The number of processes is hardcoded (-n2), because using too many
180+ # causes the Travis VM to run out of memory (since so many copies of
181+ # inkscape and ghostscript are running at the same time).
182+ python -mpytest -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n2 --log-level=DEBUG
197183
198184before_cache : |
199185 rm -rf $HOME/.cache/matplotlib/tex.cache
0 commit comments