docker-minecraft-server/tests/test.sh

15 lines
222 B
Bash
Raw Normal View History

#!/bin/bash
cd $(dirname $0)
failed=false
args="-f docker-compose.test.yml"
docker-compose $args run sut || failed=true
$failed && docker-compose $args logs mc
docker-compose $args down -v
if $failed; then
exit 1
fi