Commit ac103b42 authored by Samuel GAIST's avatar Samuel GAIST Committed by André Anjos

[scripts][before_test] Use gitlab runner id for build container

Use mv rather than ln to handle algorithm libraries.
parent aba14ccf
Pipeline #24388 passed with stages
in 13 minutes and 45 seconds
......@@ -68,8 +68,7 @@ check_env BEAT_CORE_TEST_DIR
if [ "$1" == "build" ]; then
for k in "${ALGORITHMS[@]}"; do
algodir=$(dirname "${k}")
run_cmd docker run --rm --volume="${CI_PROJECT_DIR}/scripts/build.sh:/build.sh" --volume="${BEAT_CORE_TEST_DIR}/${algodir}:/sources" --workdir="/sources" --entrypoint="bash" "${BEAT_CXX_DEV_ENVIRONMENT}" /build.sh
run_cmd ln -sf "${BEAT_CORE_TEST_DIR}/${algodir}/build/*.so" "${BEAT_CORE_TEST_DIR}/${algodir}";
run_cmd docker run --rm --user=$(id -u gitlab-runner):$(id -g gitlab-runner) --volume="${CI_PROJECT_DIR}/scripts/build.sh:/build.sh" --volume="${BEAT_CORE_TEST_DIR}/${algodir}:/sources" --workdir="/sources" --entrypoint="bash" "${BEAT_CXX_DEV_ENVIRONMENT}" /build.sh
done
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment