1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/travis_retry.sh
Takashi Kokubun b1ef14176b
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.
2019-08-12 14:37:26 +09:00

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