58
58
- secure : RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
59
59
- secure : E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
60
60
- secure : dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU=
61
- # Variables controlling the build.
62
- - MPLLOCALFREETYPE=1
63
- # Variable for the location of an extra pip requirement file
64
- - EXTRAREQS=
65
- # Variable for the location of a pip version file
66
- - PINNEDVERS=
61
+ - EXTRAREQS= # Location of an extra pip requirements file.
62
+ - PINNEDVERS= # Location of a pip constraints file.
67
63
# Variables controlling the test run.
68
64
- DELETE_FONT_CACHE=
69
65
- NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
70
- # The number of processes is hardcoded, because using too many causes the
71
- # Travis VM to run out of memory (since so many copies of inkscape and
72
- # ghostscript are running at the same time).
73
- - NPROC=2
74
66
- OPENBLAS_NUM_THREADS=1
75
67
- PYTHONFAULTHANDLER=1
76
- - PYTEST_ADDOPTS="-raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC --log-level=DEBUG"
77
68
- RUN_PYTEST=1
78
69
- RUN_FLAKE8=
79
70
@@ -111,10 +102,11 @@ matrix:
111
102
- python : " nightly"
112
103
113
104
before_install : |
114
- # test with non-ascii in path
115
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
105
+ case "$TRAVIS_OS_NAME" in
106
+ linux)
116
107
export PATH=/usr/lib/ccache:$PATH
117
- else
108
+ ;;
109
+ osx)
118
110
ci/silence brew update
119
111
brew uninstall numpy gdal postgis
120
112
brew upgrade python
@@ -126,7 +118,8 @@ before_install: |
126
118
# but this makes the test time really long.
127
119
# brew install ghostscript inkscape
128
120
export PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/ccache/libexec:$PATH
129
- fi
121
+ ;;
122
+ esac
130
123
131
124
install :
132
125
- |
@@ -165,8 +158,7 @@ install:
165
158
export CPPFLAGS=--coverage
166
159
fi
167
160
- |
168
- # Install matplotlib
169
- python -mpip install -ve .
161
+ MPLLOCALFREETYPE=1 python -mpip install -ve . # Install Matplotlib.
170
162
- |
171
163
if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]]; then
172
164
unset CPPFLAGS
@@ -178,19 +170,20 @@ before_script: |
178
170
fi
179
171
180
172
script :
181
- # each script we want to run need to go in it's own section and the program you want
182
- # to fail travis need to be the last thing called
173
+ # Each script we want to run need to go in its own section and the program
174
+ # you want to fail travis needs to be the last thing called.
183
175
- |
184
176
if [[ $RUN_PYTEST == 1 ]]; then
185
- echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
186
- python -mpytest
177
+ # The number of processes is hardcoded (-n2), because using too many
178
+ # causes the Travis VM to run out of memory (since so many copies of
179
+ # inkscape and ghostscript are running at the same time).
180
+ python -mpytest -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n2 --log-level=DEBUG
187
181
fi
188
182
- |
189
183
if [[ $RUN_FLAKE8 == 1 ]]; then
190
184
flake8 --statistics && echo "Flake8 passed without any issues!"
191
185
fi
192
186
193
-
194
187
before_cache : |
195
188
rm -rf $HOME/.cache/matplotlib/tex.cache
196
189
rm -rf $HOME/.cache/matplotlib/test_cache
0 commit comments