- cleanup tests

This commit is contained in:
Lucas Briese 2019-07-21 23:20:03 +02:00
parent bd5fdd6041
commit dca294b01e
4 changed files with 16 additions and 70 deletions

View File

@ -1,12 +0,0 @@
#!/bin/bash
if [ "${DEBUGGING:?}" = "true" ]; then
set -o xtrace
fi
set -o errexit
set -o nounset
set -o pipefail
docker rmi "jusito/docker-ttt:ubuntu" || true
docker build -t "jusito/docker-ttt:ubuntu" "."

View File

@ -2,6 +2,8 @@
if [ "${DEBUGGING}" = "true" ]; then if [ "${DEBUGGING}" = "true" ]; then
set -o xtrace set -o xtrace
else
DEBUGGING="false"
fi fi
set -o errexit set -o errexit
@ -10,11 +12,20 @@ set -o pipefail
#bash test/testStyle.sh #bash test/testStyle.sh
echo "[testBuild][INFO]build docker-ttt:ubuntu" echo "[testBuild][INFO]build"
docker rmi "jusito/docker-ttt:ubuntu" || true
docker build -t "jusito/docker-ttt:ubuntu" "." docker rmi "jusito/docker-ttt:lgsm_debian" || true
echo "[testRun][INFO]running docker-ttt:ubuntu" docker build -t "jusito/docker-ttt:lgsm_debian" "./lgsm/"
if ! docker run -ti --name "JusitoTesting" --rm -e TEST_MODE=true -e DEBUGGING="${DEBUGGING}" "jusito/docker-ttt:ubuntu"; then
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"
if ! docker run -ti --name "JusitoTesting" --rm -e TEST_MODE=true -e DEBUGGING="$DEBUGGING" "jusito/docker-ttt:gmod_ttt_debian"; then
echo "[testRun][ERROR]run test failed for docker-ttt:ubuntu" echo "[testRun][ERROR]run test failed for docker-ttt:ubuntu"
exit 1 exit 1
fi fi

View File

@ -1,33 +0,0 @@
#!/bin/bash
if [ "${DEBUGGING}" = "true" ]; then
set -o xtrace
else
DEBUGGING="false"
fi
set -o errexit
set -o nounset
set -o pipefail
#bash test/testStyle.sh
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"
if ! docker run -ti --name "JusitoTesting" --rm -e TEST_MODE=true -e DEBUGGING="$DEBUGGING" "jusito/docker-ttt:gmod_ttt_debian"; then
echo "[testRun][ERROR]run test failed for docker-ttt:ubuntu"
exit 1
fi
docker stop "JusitoTesting" || true
docker rm "JusitoTesting" || true

View File

@ -1,20 +0,0 @@
#!/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