summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-12 22:05:38 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-12 22:05:38 +0200
commitb7438cab32a6dcb8b634cb216b6ed556ffd56b70 (patch)
tree75a70d99118cc31da682d3b65e214fe8839200a8
parent694cb93bcd227684fe7e84b06f9f26cee1162353 (diff)
downloadcython-b7438cab32a6dcb8b634cb216b6ed556ffd56b70.tar.gz
Make travis install script fail on intermediate errors.
-rw-r--r--.travis.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 3fd0887b5..efffa1c86 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -108,7 +108,7 @@ branches:
before_install:
- |
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# adding apt repos in travis is really fragile => retry a couple of times.
for i in {1..10}; do travis_retry sudo apt-add-repository --yes 'ppa:ubuntu-toolchain-r/test' && break; sleep 2; done
for i in {1..10}; do travis_retry sudo apt-get update && travis_retry sudo apt-get install --yes gcc-8 $(if [ -z "${BACKEND##*cpp*}" ]; then echo -n "g++-8"; fi ) && break; sleep 2; done
@@ -122,11 +122,11 @@ before_install:
if [ "$TRAVIS_OS_NAME" == "osx" -o "$STACKLESS" == "true" ]; then
echo "Installing Miniconda"
if [ "$TRAVIS_OS_NAME" == "osx" ]; then CONDA_PLATFORM=MacOSX; else CONDA_PLATFORM=Linux; fi
- travis_retry wget -O miniconda.sh https://repo.continuum.io/miniconda/Miniconda$PY-latest-${CONDA_PLATFORM}-x86_64.sh
- bash miniconda.sh -b -p $HOME/miniconda && rm miniconda.sh
- conda --version
+ travis_retry wget -O miniconda.sh https://repo.continuum.io/miniconda/Miniconda$PY-latest-${CONDA_PLATFORM}-x86_64.sh || exit 1
+ bash miniconda.sh -b -p $HOME/miniconda && rm miniconda.sh || exit 1
+ conda --version || exit 1
#conda install --quiet --yes nomkl --file=test-requirements.txt --file=test-requirements-cpython.txt
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
which clang && clang --version && export CC=clang || true
which clang++ && clang++ --version && export CXX=clang++ || true
fi
@@ -135,7 +135,7 @@ before_install:
- if [ -n "$CC" ]; then which $CC; $CC --version; fi
- if [ -n "$CXX" ]; then which $CXX; $CXX --version; fi
- - if [[ "$STACKLESS" == "true" ]]; then
+ - if [ "$STACKLESS" == "true" ]; then
conda config --add channels stackless;
travis_retry conda install --quiet --yes stackless;
fi