Commit 019111e8 authored by Ansgar Burchardt's avatar Ansgar Burchardt

enable parallel building and running of tests

This is controlled by the `DUNECI_PARALLEL` environment variable which
can be set to the number of tasks to run in parallel.
parent 0832941f
Pipeline #814 canceled with stages
in 3 minutes and 47 seconds
......@@ -72,6 +72,10 @@ fi
opts="${DUNECI_OPTS:-/duneci/opts.gcc}"
if [[ -v DUNECI_PARALLEL ]]; then
set -- --make-opts="-j${DUNECI_PARALLEL}" "${@}"
fi
(
cd "${module}"
git_branch=$(git symbolic-ref HEAD 2>/dev/null || echo "(unknown)")
......
......@@ -16,8 +16,13 @@ if [[ -x bin/dune-ctest ]]; then
DUNE_CTEST=../bin/dune-ctest
fi
parallel_opts=
if [[ -v DUNECI_PARALLEL ]]; then
parallel_opts="-j${DUNECI_PARALLEL}"
fi
set -x
${DUNECONTROL} --current "${@}" all
${DUNECONTROL} --current make build_tests
cd build-cmake
${DUNE_CTEST}
${DUNECONTROL} --current "${@}" vcsetup
${DUNECONTROL} --current "${@}" configure
${DUNECONTROL} --current "${@}" make ${parallel_opts} all build_tests
${DUNECONTROL} --current "${@}" bexec ${DUNE_CTEST} ${parallel_opts}
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