summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-08-07 01:26:02 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-07 01:26:33 +0900
commit2d6b92c5f6b6343f34bb363604339f4bd7b951ac (patch)
treeb6ace28786e2e196a8311a4f2e7405a7259534b7 /.travis.yml
parent66a13413eee3c4985e62e87addcdce84fc4540fe (diff)
Retry ubuntu-toolchain-r-test apt source setup
In 614c90fe21cf1d9cf6fb18684187d8c7e2f61de6, I assumed apt-add-repository has been stable recently, but I saw PR randomly failed for it today. This commit only deals with "ubuntu-toolchain-r-test" and does NOT deal with `llvm-toolchain-xenial-8` intentionally, because what it does (mainly curl from build.travis-ci.org) seems to be more reliable than "ubuntu-toolchain-r-test". Also `&clang-8` jobs are basically allow_failures and it's less important to be stabilized.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml34
1 files changed, 20 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml
index d730deba12..fa637094b6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -82,16 +82,19 @@ env:
- &gcc-8
compiler: gcc-8
- addons:
- apt:
- config:
- retries: true
- sources:
- - ubuntu-toolchain-r-test
- # `packages` are installed in `before_install` for retries.
+ # # Not using addon to control retries
+ # addons:
+ # apt:
+ # sources:
+ # - ubuntu-toolchain-r-test
before_install:
- |-
for seconds in 1 25 100 -1; do
+ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
+ if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi
+ done
+ - |-
+ for seconds in 1 25 100 -1; do
travis_apt_get_update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends $travis_apt_get_options install \
@@ -279,16 +282,19 @@ env:
- GCC_FLAGS=-m32
- debugflags=-g0
- SETARCH='setarch i686 --verbose --3gb'
- addons:
- apt:
- config:
- retries: true
- sources:
- - ubuntu-toolchain-r-test
- # `packages` are installed in `before_install` for retries.
+ # # Not using addon to control retries
+ # addons:
+ # apt:
+ # sources:
+ # - ubuntu-toolchain-r-test
before_install:
- |-
for seconds in 1 25 100 -1; do
+ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
+ if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi
+ done
+ - |-
+ for seconds in 1 25 100 -1; do
travis_apt_get_update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends $travis_apt_get_options install \