Skip to content

Commit 8c3277b

Browse files
committed
CI: Fail when failed to install dependencies
`font-wenquanyi-zen-hei` was removed from Homebrew Homebrew/homebrew-cask-fonts#1924
1 parent eb18cb2 commit 8c3277b

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

0 commit comments

Comments
 (0)