KEEP_TEST_ENV=1 to keep environment after running a test
@@ -236,6 +236,12 @@ test-e2e: build-test-e2e modern-lambdas ## Build and run e2e tests
.PHONY: test-with-env
test-with-env: # (Do not include help text - not to be used directly)
stopGrapl() {
+ # skip if KEEP_TEST_ENV is set
+ if [[ -z "${KEEP_TEST_ENV}" ]]; then
+ echo "Tearing down test environment"
+ else
+ echo "Keeping test environment" && return 0
+ fi
# Unset COMPOSE_FILE to help ensure it will be ignored with use of --file
unset COMPOSE_FILE
docker-compose --file docker-compose.yml stop;
