|
|
|
@ -6,7 +6,7 @@ docker-compose -p ci --file docker-compose.test.yml up --build
|
|
|
|
|
|
|
|
|
|
echo "Inspecting exited containers:"
|
|
|
|
|
docker-compose -p ci --file docker-compose.test.yml ps
|
|
|
|
|
docker-compose -p ci --file docker-compose.test.yml ps -q | xargs docker inspect -p ci -f '{{ .State.ExitCode }}' | while read code; do
|
|
|
|
|
docker-compose -p ci --file docker-compose.test.yml ps -q | xargs docker inspect -f '{{ .State.ExitCode }}' | while read code; do
|
|
|
|
|
echo "Exit code is currently $code"
|
|
|
|
|
if [ "$code" != "0" ]; then
|
|
|
|
|
exit $code
|
|
|
|
|