prophunt-garrysmod/test/testCaseQuick.sh

24 lines
551 B
Bash
Raw Normal View History

2019-07-21 23:04:00 +02:00
#!/bin/bash
if [ "${DEBUGGING}" = "true" ]; then
set -o xtrace
2019-07-21 23:20:03 +02:00
else
DEBUGGING="false"
2019-07-21 23:04:00 +02:00
fi
set -o errexit
set -o nounset
set -o pipefail
#bash test/testStyle.sh
bash test/testBuild.sh
2019-07-21 23:20:03 +02:00
echo "[testRun][INFO]running"
2019-07-29 21:54:31 +02:00
if ! docker run -ti --name "JusitoTesting" --rm -e TEST_MODE=true -e DEBUGGING="$DEBUGGING" -e SERVER_PASSWORD="testpw" -e SERVER_MAX_PLAYERS="10" "jusito/docker-ttt:gmod_ttt_debian"; then
2019-07-21 23:04:00 +02:00
echo "[testRun][ERROR]run test failed for docker-ttt:ubuntu"
exit 1
fi
docker stop "JusitoTesting" || true
2019-10-15 12:40:02 +02:00
docker rm "JusitoTesting" || true