ci: Remove dependence on travis, use it as fallback env

This commit is contained in:
MarcoFalke
2019-08-10 12:56:46 -04:00
parent fa0aac0f43
commit fa31bc35eb
9 changed files with 91 additions and 40 deletions

View File

@@ -35,7 +35,7 @@ Help:
-m, --min=secs Exponenetial Backoff: minimum sleep amount (seconds): Default 0.3
-x, --max=secs Exponenetial Backoff: maximum sleep amount (seconds): Default 60
-f, --fail="script +cmds" Fail Script: run in case of final failure
### Examples
No problem:

View File

@@ -4,7 +4,7 @@ GETOPT_BIN=$IN_GETOPT_BIN
GETOPT_BIN=${GETOPT_BIN:-getopt}
__sleep_amount() {
if [ -n "$constant_sleep" ]; then
if [ -n "$constant_sleep" ]; then
sleep_time=$constant_sleep
else
#TODO: check for awk
@@ -159,5 +159,5 @@ EOF
done
retry "$max_tries" "$min_sleep" "$max_sleep" "$constant_sleep" "$fail_script" "$@"
fi