Skip to content

Instantly share code, notes, and snippets.

@orpiske
Created July 6, 2022 12:11
Show Gist options
  • Save orpiske/965e9cda38b14c05e790c3151c2d10e4 to your computer and use it in GitHub Desktop.
Save orpiske/965e9cda38b14c05e790c3151c2d10e4 to your computer and use it in GitHub Desktop.
#!/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