Cleanup containers

master
Tim Möhlmann 6 years ago
parent 4133bab280
commit 42f557ff38
No known key found for this signature in database
GPG Key ID: AFABC30066A39335

@ -33,12 +33,24 @@ container_logs() {
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
cp $file .env
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG up -d
sleep 1m
docker ps -a
container_logs
containers_check || exit 1
containers_check || die 1
clean
done

Loading…
Cancel
Save