docker-minecraft-server/tests/test.sh
2021-12-04 18:42:03 -06:00

22 lines
244 B
Bash
Executable file

#!/bin/bash
cd "$(dirname "$0")" || exit 1
failed=false
down() {
docker-compose down -v
}
docker-compose run monitor || failed=true
echo "
Result: failed=$failed"
if $failed; then
docker-compose logs mc
down
exit 1
else
down
fi