|
|
@ -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}"
|
|
|
|