From c46c855ceffbc124b2414e1c35220afd5f4157ac Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Mon, 6 Jan 2020 13:51:02 +0100 Subject: [PATCH] Backport PR #16112: CI: Fail when failed to install dependencies --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 76941ed28aa3..eb962831546b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,13 +103,16 @@ before_install: | export PATH=/usr/lib/ccache:$PATH ;; osx) + set -e ci/silence brew update brew uninstall numpy gdal postgis + brew unlink python@2 brew upgrade python - brew install ffmpeg imagemagick mplayer ccache font-wenquanyi-zen-hei + brew install ffmpeg imagemagick mplayer ccache hash -r which python python --version + set +e # We could install ghostscript and inkscape here to test svg and pdf # but this makes the test time really long. # brew install ghostscript inkscape @@ -127,6 +130,8 @@ install: - | # Install dependencies from PyPI. python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS + - | + # Install optional dependencies from PyPI. # GUI toolkits are pip-installable only for some versions of Python so # don't fail if we can't install them. Make it easier to check whether the # install was successful by trying to import the toolkit (sometimes, the