Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-30 20:34:04 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-30 20:34:39 -0700
commit1eda0dafd539b6a259fe1ad4609419c8f04c49c7 (patch)
tree574a44e8bb574d947e5114046c550965874f4df5 /run-test
parentfcb205ba0b5e958c39100e1eef57317fbf3c20d1 (diff)
Fix test; add some scripts
Diffstat (limited to 'run-test')
-rwxr-xr-xrun-test8
1 files changed, 1 insertions, 7 deletions
diff --git a/run-test b/run-test
index 1c162ba..0430cf7 100755
--- a/run-test
+++ b/run-test
@@ -1,11 +1,5 @@
#!/usr/bin/env bash
NPM_COMMAND="npm run test:integ"
-CONTAINER_NAME=$(docker container ls --all --filter=ancestor=btroops --format "{{.Names}}")
-if [[ -z "${CONTAINER_NAME}" ]]
-then
- docker run --rm -it -v $PWD:/usr/src/app btroops $NPM_COMMAND
-else
- docker exec -it $CONTAINER_NAME $NPM_COMMAND
-fi
+docker run --rm --init -it -v $PWD:/usr/src/app btroops $NPM_COMMAND