Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
# Sobe a infraestrutura para rodar os tess
docker-compose up -d
# Roda o build e os testes
mvn clean verify
# Salva o resultado do mvn. Entenda sobre isso aqui: https://tldp.org/LDP/abs/html/exit-status.html
ret=$?
# Baixa a infraestrutura
docker-compose down
# Sai do script usando o resultado salvo.
exit ${ret}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment