Skip to content

Commit 5006644

Browse files
committed
chore: adds all variables in versions.env to build and startup of test containers
1 parent 140b3c1 commit 5006644

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

scripts/build_test.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/sh
2-
# Since containers are not built in the pre-commit hook any more, this script is used to build the test environment
32

3+
if [ ! -f versions.env ]; then
4+
echo "Missing versions.env in repository root."
5+
exit 1
6+
fi
7+
8+
# Export image/tool version variables used by compose.yml and Dockerfiles.
9+
set -a
10+
. ./versions.env
11+
set +a
12+
13+
# Since containers are not built in the pre-commit hook any more, this script is used to build the test environment
414
REPO_ROOT_DIR=$(git rev-parse --show-toplevel)
515
cd $REPO_ROOT_DIR
616
docker compose -f compose.yml -f compose.override.test.yml --env-file versions.env --env-file backend/src/tests/.env build

scripts/enter_backend_test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
22

3+
if [ ! -f versions.env ]; then
4+
echo "Missing versions.env in repository root."
5+
exit 1
6+
fi
7+
8+
# Export image/tool version variables used by compose.yml and Dockerfiles.
9+
set -a
10+
. ./versions.env
11+
set +a
312

413
# Handy tool to spped up tests - assunes the test environment is already built
514
# to start all over pre-commit hookl might be handy!

scripts/enter_frontend_svelte_test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/sh
22

33

4+
if [ ! -f versions.env ]; then
5+
echo "Missing versions.env in repository root."
6+
exit 1
7+
fi
8+
9+
# Export image/tool version variables used by compose.yml and Dockerfiles.
10+
set -a
11+
. ./versions.env
12+
set +a
13+
414
# Handy tool to spped up tests - assunes the test environment is already built
515
# to start all over pre-commit hookl might be handy!
616
REPO_ROOT_DIR=$(git rev-parse --show-toplevel)

0 commit comments

Comments
 (0)