Skip to content

Commit 7331781

Browse files
authored
Merge pull request #16112 from Kojoley/ci-travis-fail-when-dep-install-fails
CI: Fail when failed to install dependencies
2 parents 7c119b6 + 8c3277b commit 7331781

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy