Verbose sleep

This commit is contained in:
Tim Möhlmann
2018-10-06 16:25:12 +03:00
parent 59eb4a5a00
commit 508796eaab

View File

@@ -17,8 +17,19 @@ if [ -z "$DOCKER_ORG" ]; then
export DOCKER_ORG="mailu" export DOCKER_ORG="mailu"
fi fi
containers_check() { # 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 sleep 1m
((COUNT--))
done;
}
containers_check() {
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}"