Verbose sleep

master
Tim Möhlmann 6 years ago
parent 59eb4a5a00
commit 508796eaab
No known key found for this signature in database
GPG Key ID: AFABC30066A39335

@ -17,8 +17,19 @@ if [ -z "$DOCKER_ORG" ]; then
export DOCKER_ORG="mailu" export DOCKER_ORG="mailu"
fi fi
# Verbose sleep, to prevent Travis to cancel the build
# First argument is desired sleep time in minutes
v_sleep() {
COUNT=$1
until [ $COUNT -eq 0 ]; do
echo "Sleep for $COUNT more minutes"
sleep 1m
((COUNT--))
done;
}
containers_check() { containers_check() {
sleep 1m v_sleep 1
STATUS=0 STATUS=0
for container in "${containers[@]}"; do for container in "${containers[@]}"; do
echo "Checking ${DOCKER_ORG}_${container}" echo "Checking ${DOCKER_ORG}_${container}"

Loading…
Cancel
Save