ci: Only output server logs when failed

This commit is contained in:
Geoff Bourne 2020-07-11 14:13:28 -05:00
parent 367c6cfd92
commit 3c9df03584

View File

@ -4,7 +4,8 @@ cd $(dirname $0)
failed=false failed=false
args="-f docker-compose.test.yml" args="-f docker-compose.test.yml"
docker-compose $args run sut || failed=true; docker-compose $args logs mc docker-compose $args run sut || failed=true
$failed && docker-compose $args logs mc
docker-compose $args down -v docker-compose $args down -v
if $failed; then if $failed; then