1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Takashi Kokubun 2019-08-12 14:35:49 +09:00
parent 4f10a61eaa
commit b1ef14176b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
4 changed files with 10 additions and 12 deletions

View file

@ -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)))

View file

@ -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)))

View file

@ -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 \

View file

@ -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"