diff --git a/scripts/gitlab/build_and_test.sh b/scripts/gitlab/build_and_test.sh index 314c587dfd..58d04163c9 100755 --- a/scripts/gitlab/build_and_test.sh +++ b/scripts/gitlab/build_and_test.sh @@ -49,6 +49,8 @@ spack_debug=${SPACK_DEBUG:-false} debug_mode=${DEBUG_MODE:-false} push_to_registry=${PUSH_TO_REGISTRY:-true} +camp_reference=${CAMP_REFERENCE:-""} + # Map CPU core allocations declare -A core_counts=(["dane"]=28 ["matrix"]=28 ["corona"]=32 ["rzansel"]=48 ["tioga"]=32 ["tuolumne"]=48) @@ -275,6 +277,15 @@ then exit 1 fi + extra_deps="" + + if [[ -n ${camp_reference} ]] + then + extra_deps="${extra_deps} ^camp@git.${camp_reference}=main" + fi + + [[ -n ${extra_deps} ]] && spec="${spec} ${extra_deps}" + prefix_opt="--prefix=${prefix}" # We force Spack to put all generated files (cache and configuration of