fix(ci): Reduce flakiness

Fix #103
This commit is contained in:
Yusuke KUOKA 2018-07-25 11:21:01 +09:00
parent ee3632cebc
commit 1a5558a306
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ function retry() {
${command} && break # substitute your command here
retry_result=$?
n=$[$n+1]
sleep 1
# approximated binary exponential backoff to reduce flakiness
sleep $((n ** 2))
done
}