summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-08-12 14:35:49 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-12 14:37:26 +0900
commitb1ef14176b3716e3900672a9563b94aa3abedb2d (patch)
treeb4901a6a9f550cd3105294b7d96b4c0439729d68
parent4f10a61eaaf5bfe7e4c53edc79c5e27a7bd1ae33 (diff)
We did not have tool/ before checkout
anyway we don't need authorization here. Also retry does not seem to work in the original version, so let's extend this with retries as a separate github action later.
-rw-r--r--.github/workflows/macos.yml2
-rw-r--r--.github/workflows/ubuntu.yml2
-rw-r--r--.travis.yml16
-rwxr-xr-xtool/travis_retry.sh (renamed from tool/ci_retry.sh)2
4 files changed, 10 insertions, 12 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 629b542a25..f698b55410 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -22,7 +22,7 @@ jobs:
brew update
brew install gdbm gmp libffi openssl zlib ccache autoconf automake libtool readline
- name: Checkout # not using actions/checkout because it's unstable.
- run: tool/ci_retry.sh git clone --depth=50 https://github.com/ruby/ruby .
+ run: git clone --depth=50 https://github.com/ruby/ruby .
- name: Set ENV
run: |
echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu)))
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 7870fae308..7be2c687ad 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -21,7 +21,7 @@ jobs:
sudo apt-get install ruby2.5
sudo apt-get build-dep ruby2.5
- name: Checkout # not using actions/checkout because it's unstable.
- run: tool/ci_retry.sh git clone --depth=50 https://github.com/ruby/ruby .
+ run: git clone --depth=50 https://github.com/ruby/ruby .
- name: Set ENV
run: |
export JOBS=-j$((1 + $(nproc --all)))
diff --git a/.travis.yml b/.travis.yml
index 726b75b537..710bb4ac81 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -91,10 +91,10 @@ env:
# sources:
# - ubuntu-toolchain-r-test
before_install:
- - tool/ci_retry.sh sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- - tool/ci_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
+ - tool/travis_retry.sh sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
+ - tool/travis_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
- |-
- tool/ci_retry.sh sudo -E apt-get $travis_apt_get_options install \
+ tool/travis_retry.sh sudo -E apt-get $travis_apt_get_options install \
gcc-8 \
libffi-dev \
libgdbm-dev \
@@ -119,9 +119,9 @@ env:
config:
retries: true
before_install:
- - tool/ci_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
+ - tool/travis_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
- |-
- tool/ci_retry.sh sudo -E apt-get $travis_apt_get_options install \
+ tool/travis_retry.sh sudo -E apt-get $travis_apt_get_options install \
clang-8 \
llvm-8-tools \
libffi-dev \
@@ -277,10 +277,10 @@ env:
# sources:
# - ubuntu-toolchain-r-test
before_install:
- - tool/ci_retry.sh sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- - tool/ci_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
+ - tool/travis_retry.sh sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
+ - tool/travis_retry.sh bash -c "sudo rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && sudo apt-get update -yq"
- |-
- tool/ci_retry.sh sudo -E apt-get $travis_apt_get_options install \
+ tool/travis_retry.sh sudo -E apt-get $travis_apt_get_options install \
gcc-8-multilib \
libffi-dev:i386 \
libffi6:i386 \
diff --git a/tool/ci_retry.sh b/tool/travis_retry.sh
index 4eb378ad1a..9b79c56550 100755
--- a/tool/ci_retry.sh
+++ b/tool/travis_retry.sh
@@ -1,8 +1,6 @@
#!/bin/sh -eu
# The modified version of `travis_retry` to support custom backoffs, which is used by .travis.yml.
# https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_retry.bash
-#
-# Now this is also used by .github/workflow/*.yml.
for sleep in 0 ${WAITS:- 1 25 100}; do
sleep "$sleep"