Skip to content

Instantly share code, notes, and snippets.

@akantsevoi
Created April 13, 2020 19:41
Show Gist options
  • Save akantsevoi/f717e1c705833731e42b748e4c3fb5fe to your computer and use it in GitHub Desktop.
Save akantsevoi/f717e1c705833731e42b748e4c3fb5fe to your computer and use it in GitHub Desktop.
#!/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