ruby-changes:56847
From: Takashi <ko1@a...>
Date: Wed, 7 Aug 2019 09:40:46 +0900 (JST)
Subject: [ruby-changes:56847] Takashi Kokubun: a0fe396555 (master): Simplify break logic of Travis retries
https://git.ruby-lang.org/ruby.git/commit/?id=a0fe396555 From a0fe396555b164562f69e08e67b62d9904bcfaaa Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 7 Aug 2019 09:39:46 +0900 Subject: Simplify break logic of Travis retries Co-Authored-By: Nobuyoshi Nakada <nobu@r...> diff --git a/.travis.yml b/.travis.yml index 02efe76..44545a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -90,8 +90,8 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L90 before_install: - |- for seconds in 1 25 100 -1; do - sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" - if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi + sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && break + sleep "$seconds" || exit 1 done - |- for seconds in 1 25 100 -1; do @@ -110,9 +110,10 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L110 libyaml-dev \ openssl \ valgrind \ - zlib1g-dev + zlib1g-dev \ + && break - if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi + sleep "$seconds" || exit 1 done - &clang-8 @@ -143,9 +144,10 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L144 libyaml-dev \ openssl \ valgrind \ - zlib1g-dev + zlib1g-dev \ + && break - if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi + sleep "$seconds" || exit 1 done # -------- @@ -290,8 +292,8 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L292 before_install: - |- for seconds in 1 25 100 -1; do - sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" - if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi + sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && break + sleep "$seconds" || exit 1 done - |- for seconds in 1 25 100 -1; do @@ -312,9 +314,10 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L314 libssl1.0.0:i386 \ linux-libc-dev:i386 \ zlib1g-dev:i386 \ - zlib1g:i386 + zlib1g:i386 \ + && break - if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi + sleep "$seconds" || exit 1 done - &pedanticism -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/