Skip to content

Commit

Permalink
(sakuli/sakuli-ocr#7) added -it to test runs to be able to cancel con…
Browse files Browse the repository at this point in the history
…tainer execution
  • Loading branch information
svettwer committed Dec 15, 2020
1 parent e4f52c8 commit 42c53b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dgoss run \
# standard use case
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-suite \
-v $(pwd)/e2e:/sakuli-project \
Expand All @@ -18,6 +19,7 @@ docker run \
# standard use case in DEBUG mode
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-suite \
-e DEBUG=true \
Expand All @@ -28,6 +30,7 @@ docker run \
# use case with altered user and group
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-suite \
-v $(pwd)/e2e:/sakuli-project \
Expand All @@ -38,6 +41,7 @@ docker run \
# git clone use case
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e GIT_URL=https://github.com/sakuli/sakuli.git \
-e GIT_CONTEXT_DIR=packages/e2e/ \
Expand All @@ -48,6 +52,7 @@ docker run \
set +e
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-broken \
-v $(pwd)/e2e:/sakuli-project \
Expand All @@ -60,6 +65,7 @@ set -e
set +e
docker run \
--rm \
-it \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-broken \
-v $(pwd)/e2e:/sakuli-project \
--shm-size=2G \
Expand All @@ -69,6 +75,7 @@ set -e

# start another command than sakuli
docker run \
-it \
--rm \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
--shm-size=2G \
Expand All @@ -78,6 +85,7 @@ docker run \
# start with different user and another command than sakuli
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
--shm-size=2G \
-u 45678:12345 \
Expand All @@ -87,6 +95,7 @@ docker run \
# start with project referenced in SAKULI_TEST_SUITE
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project \
-v $(pwd)/e2e:/sakuli-project \
Expand All @@ -96,6 +105,7 @@ docker run \
# install 3rd party packages before executing Sakuli
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-puppeteer \
-e INSTALL_PACKAGES=true \
Expand All @@ -106,6 +116,7 @@ docker run \
# OCR run
docker run \
--rm \
-it \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-ocr \
-v $(pwd)/e2e:/sakuli-project \
Expand Down

0 comments on commit 42c53b5

Please sign in to comment.