prophunt-garrysmod/test/testCaseQuick.sh

35 lines
1.1 KiB
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
2019-07-21 23:20:03 +02:00
echo "[testBuild][INFO]build"
docker rmi "jusito/docker-ttt:lgsm_debian" || true
docker build -t "jusito/docker-ttt:lgsm_debian" "./lgsm/"
docker rmi "jusito/docker-ttt:gmod_debian" || true
docker build -t "jusito/docker-ttt:gmod_debian" "./gmod/"
docker rmi "jusito/docker-ttt:gmod_ttt_debian" || true
docker build -t "jusito/docker-ttt:gmod_ttt_debian" "./TTT/"
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-07-29 21:54:31 +02:00
docker rm "JusitoTesting" || true
#docker run -ti --name "JusitoTesting" -p 27015:27015/udp -p 27015:27015/tcp --rm -e TEST_MODE=true -e DEBUGGING="$DEBUGGING" -e SERVER_PASSWORD="testpw" -e SERVER_MAX_PLAYERS="10" "jusito/docker-ttt:gmod_ttt_debian"