index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'run-test')
-rwxr-xr-x | run-test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/run-test b/run-test new file mode 100755 index 0000000..1c162ba --- /dev/null +++ b/run-test @@ -0,0 +1,11 @@ +#!/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 |