Skip to content

Commit db3109e

Browse files
Add: devenv-container check
1 parent b936034 commit db3109e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/ict

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ BAZEL_ICT_TARGET="//rs/tests/ict:ict"
1313
# Path to this binary is hard coded, as getting it from Bazel is a bit slow (~0.5 sec) for a good interactivity.
1414
ICT_BIN="bazel-out/k8-opt/bin/rs/tests/ict/ict_/ict"
1515

16+
if [ "$(hostname)" != "devenv-container" ]; then
17+
echo -e "${BOLD}${RED}This script can only be executed within a devenv-container. Make sure you first executed:\n/ic$ ./gitlab-ci/container/container-run.sh${NC}"
18+
exit 1
19+
fi
20+
1621
compile_ict() {
1722
bazel build $BAZEL_ICT_TARGET --config=local >/dev/null 2>&1
1823
CODE="$?"

0 commit comments

Comments
 (0)