20 lines
506 B
Bash
20 lines
506 B
Bash
#!/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 |