prophunt-garrysmod/test/testRun.sh

20 lines
506 B
Bash
Raw Normal View History

2019-07-21 23:04:00 +02:00
#!/bin/bash
if [ "${DEBUGGING:?}" = "true" ]; then
set -o xtrace
fi
set -o errexit
set -o nounset
set -o pipefail
docker stop "JusitoTesting" || true
docker rm "JusitoTesting" || true
echo "[testRun][INFO]running docker-ttt:ubuntu"
if ! docker run -ti --name "JusitoTesting" --rm -e TEST_MODE=true -e DEBUGGING="${DEBUGGING}" "jusito/docker-ttt:ubuntu"; then
echo "[testRun][ERROR]run test failed for docker-ttt:ubuntu"
exit 1
fi
docker stop "JusitoTesting" || true
docker rm "JusitoTesting" || true