10000 Merge pull request #14380 from anntzer/travis · matplotlib/matplotlib@0e2fa71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e2fa71

Browse files
authored
Merge pull request #14380 from anntzer/travis
Inline $MPLLOCALFREETYPE/$PYTEST_ADDOPTS/$NPROC in .travis.yml.
2 parents d19e8c1 + d44b871 commit 0e2fa71

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

.travis.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,13 @@ env:
5858
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
5959
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
6060
- 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.
6763
# Variables controlling the test run.
6864
- DELETE_FONT_CACHE=
6965
- 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
7466
- OPENBLAS_NUM_THREADS=1
7567
- PYTHONFAULTHANDLER=1
76-
- PYTEST_ADDOPTS="-raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC --log-level=DEBUG"
7768
- RUN_PYTEST=1
7869
- RUN_FLAKE8=
7970

@@ -111,10 +102,11 @@ matrix:
111102
- python: "nightly"
112103

113104
before_install: |
114-
# test with non-ascii in path
115-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
105+
case "$TRAVIS_OS_NAME" in
106+
linux)
116107
export PATH=/usr/lib/ccache:$PATH
117-
else
108+
;;
109+
osx)
118110
ci/silence brew update
119111
brew uninstall numpy gdal postgis
120112
brew upgrade python
@@ -126,7 +118,8 @@ before_install: |
126118
# but this makes the test time really long.
127119
# brew install ghostscript inkscape
128120
export PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/ccache/libexec:$PATH
129-
fi
121+
;;
122+
esac
130123
131124
install:
132125
- |
@@ -165,8 +158,7 @@ install:
165158
export CPPFLAGS=--coverage
166159
fi
167160
- |
168-
# Install matplotlib
169-
python -mpip install -ve .
161+
MPLLOCALFREETYPE=1 python -mpip install -ve . # Install Matplotlib.
170162
- |
171163
if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]]; then
172164
unset CPPFLAGS
@@ -178,19 +170,20 @@ before_script: |
178170
fi
179171
180172
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.
183175
- |
184176
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
187181
fi
188182
- |
189183
if [[ $RUN_FLAKE8 == 1 ]]; then
190184
flake8 --statistics && echo "Flake8 passed without any issues!"
191185
fi
192186
193-
194187
before_cache: |
195188
rm -rf $HOME/.cache/matplotlib/tex.cache
196189
rm -rf $HOME/.cache/matplotlib/test_cache

0 commit comments

Comments
 (0)
0