mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 14:22:27 +00:00
17 lines
254 B
Bash
Executable file
17 lines
254 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd $(dirname $0)
|
|
|
|
failed=false
|
|
args="-f docker-compose.test.yml"
|
|
docker-compose $args run sut || failed=true
|
|
echo "
|
|
Result: failed=$failed"
|
|
|
|
$failed && docker-compose $args logs mc
|
|
docker-compose $args down -v
|
|
|
|
if $failed; then
|
|
exit 1
|
|
fi
|
|
|