Created
April 13, 2020 19:41
-
-
Save akantsevoi/f717e1c705833731e42b748e4c3fb5fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker-compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from app 2> /dev/null | |
if [ $? -eq 0 ] | |
then | |
docker-compose -f docker-compose-tests.yml down --volumes | |
echo "Application tests success" | |
else | |
docker-compose -f docker-compose-tests.yml down --volumes | |
echo "Application tests errors" >&2 | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment