62
62
- NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
63
63
- OPENBLAS_NUM_THREADS=1
64
64
- PYTHONFAULTHANDLER=1
65
- - RUN_PYTEST=1
66
- - RUN_FLAKE8=
67
65
68
66
matrix :
69
67
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'
76
68
- python : 3.6
77
69
env :
78
70
- PINNEDVERS='-c requirements/testing/travis36minver.txt'
@@ -165,13 +157,13 @@ install:
165
157
166
158
# Set flag in a delayed manner to avoid issues with installing other packages
167
159
- |
168
- if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]] ; then
160
+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
169
161
export CPPFLAGS=--coverage
170
162
fi
171
163
- |
172
164
python -mpip install -ve . # Install Matplotlib.
173
165
- |
174
- if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]] ; then
166
+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
175
167
unset CPPFLAGS
176
168
fi
177
169
@@ -184,16 +176,10 @@ script:
184
176
# Each script we want to run need to go in its own section and the program
185
177
# you want to fail travis needs to be the last thing called.
186
178
- |
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 --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
197
183
198
184
before_cache : |
199
185
rm -rf $HOME/.cache/matplotlib/tex.cache
0 commit comments