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

Skip to content

Commit c4234a5

Browse files
KojoleyNelleV
andauthored
Backport PR #16112 on branch v3.2.x (CI: Fail when failed to i… (#16135)
Backport PR #16112 on branch v3.2.x (CI: Fail when failed to install dependencies) Co-authored-by: Nelle Varoquaux <nelle.varoquaux@gmail.com>
2 parents 161219a + c46c855 commit c4234a5

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
@@ -103,13 +103,16 @@ before_install: |
103103
export PATH=/usr/lib/ccache:$PATH
104104
;;
105105
osx)
106+
set -e
106107
ci/silence brew update
107108
brew uninstall numpy gdal postgis
109+
brew unlink python@2
108110
brew upgrade python
109-
brew install ffmpeg imagemagick mplayer ccache font-wenquanyi-zen-hei
111+
brew install ffmpeg imagemagick mplayer ccache
110112
hash -r
111113
which python
112114
python --version
115+
set +e
113116
# We could install ghostscript and inkscape here to test svg and pdf
114117
# but this makes the test time really long.
115118
# brew install ghostscript inkscape
@@ -127,6 +130,8 @@ install:
127130
- |
128131
# Install dependencies from PyPI.
129132
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
133+
- |
134+
# Install optional dependencies from PyPI.
130135
# GUI toolkits are pip-installable only for some versions of Python so
131136
# don't fail if we can't install them. Make it easier to check whether the
132137
# install was successful by trying to import the toolkit (sometimes, the

0 commit comments

Comments
 (0)
0