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
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
if $failed; then