Commit aba14ccf authored by Samuel GAIST's avatar Samuel GAIST Committed by André Anjos
Browse files

[scripts][before_test] Moved build commands in own script

parent e03d5b25
......@@ -68,7 +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="${BEAT_CORE_TEST_DIR}/${algodir}:/sources" --workdir="/sources" --entrypoint="bash" "${BEAT_CXX_DEV_ENVIRONMENT}" -c 'mkdir -p build; cd build; cmake .. ; make'
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}";
done
fi
......
#!/usr/bin/env bash
mkdir -p build
cd build
cmake ..
make
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