mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
330e3f19c3
Not using official travis_retry.bash, because it's not supporting to modify backoff seconds.0ad8f1886b/lib/travis/build/bash/travis_retry.bash
Not using official `travis_apt_get_update` function because it does not propagate exit status to be used by retries.0ad8f1886b/lib/travis/build/bash/travis_apt_get_update.bash
Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
13 lines
325 B
Bash
Executable file
13 lines
325 B
Bash
Executable file
#!/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
|
|
|
|
for sleep in 0 ${WAITS:- 1 25 100}; do
|
|
sleep "$sleep"
|
|
|
|
echo "+ $@"
|
|
if "$@"; then
|
|
exit 0
|
|
fi
|
|
done
|
|
exit 1
|