8000 Backport PR #16112 on branch v3.1.x (CI: Fail when failed to i… (#16136) · matplotlib/matplotlib@7a9a12a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a9a12a

Browse files
KojoleyNelleV
andauthored
Backport PR #16112 on branch v3.1.x (CI: Fail when failed to i… (#16136)
Backport PR #16112 on branch v3.1.x (CI: Fail when failed to install dependencies) Co-authored-by: Nelle Varoquaux <nelle.varoquaux@gmail.com>
2 parents 00633ae + 6b29342 commit 7a9a12a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,16 @@ before_install: |
112112
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
113113
export PATH=/usr/lib/ccache:$PATH
114114
else
115+
set -e
115116
ci/silence brew update
116117
brew uninstall numpy gdal postgis
118+
brew unlink python@2
117119
brew upgrade python
118-
brew install ffmpeg imagemagick mplayer ccache font-wenquanyi-zen-hei
120+
brew install ffmpeg imagemagick mplayer ccache
119121
hash -r
120122
which python
121123
python --version
124+
set +e
122125
# We could install ghostscript and inkscape here to test svg and pdf
123126
# but this makes the test time really long.
124127
# brew install ghostscript inkscape
@@ -135,6 +138,8 @@ install:
135138
- |
136139
# Install dependencies from PyPI.
137140
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
141+
- |
142+
# Install optional dependencies from PyPI.
138143
# GUI toolkits are pip-installable only for some versions of Python so
139144
# don't fail if we can't install them. Make it easier to check whether the
140145
# install was successful by trying to import the toolkit (sometimes, the

0 commit comments

Comments
 (0)
0