|
|
@ -33,12 +33,24 @@ container_logs() {
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean() {
|
|
|
|
|
|
|
|
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG down || exit 1
|
|
|
|
|
|
|
|
rm -fv .env
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Cleanup before callig exit
|
|
|
|
|
|
|
|
die() {
|
|
|
|
|
|
|
|
clean
|
|
|
|
|
|
|
|
exit $1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for file in tests/compose/*.env ; do
|
|
|
|
for file in tests/compose/*.env ; do
|
|
|
|
cp $file .env
|
|
|
|
cp $file .env
|
|
|
|
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG up -d
|
|
|
|
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG up -d
|
|
|
|
sleep 1m
|
|
|
|
sleep 1m
|
|
|
|
docker ps -a
|
|
|
|
docker ps -a
|
|
|
|
container_logs
|
|
|
|
container_logs
|
|
|
|
containers_check || exit 1
|
|
|
|
containers_check || die 1
|
|
|
|
|
|
|
|
clean
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|