Skip to content
Snippets Groups Projects
Verified Commit e1d412ad authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Submit to CDash Experimental on non-master (MRs).

parent 93b1f759
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,12 @@
regex_argument="${regex_argument} -E ${CTEST_EXCLUDE_REGEX}"
fi
# -M Continuous does not run any tests -> -M Experimental --group Continuous
# --test-dir has to be provided despite using a preset
${xvfb_run_cmd} ctest -M Experimental ${regex_argument} --group Continuous --test-dir ${build_dir_full} -T Test -T Submit --preset=${CMAKE_PRESET}${preset_postfix} --output-junit Tests/ctest.xml --stop-time `date -d "today + ${ctest_timeout} minutes" +'%H:%M:%S'` ${CTEST_ARGS}
ctest_model="Experimental"
if [ "${CI_COMMIT_BRANCH}" = "master" ]; then
ctest_model="Continuous"
fi
${xvfb_run_cmd} ctest -M ${ctest_model} ${regex_argument} --test-dir ${build_dir_full} -T Test -T Submit --preset=${CMAKE_PRESET}${preset_postfix} --output-junit Tests/ctest.xml --stop-time `date -d "today + ${ctest_timeout} minutes" +'%H:%M:%S'` ${CTEST_ARGS}
fi
else
......
......@@ -25,7 +25,9 @@
}
- cmake --build --preset=$env:CMAKE_PRESET --target package | Tee-Object -FilePath $log_file
- if($env:BUILD_TESTS -eq "true") { cmake --build --preset=$env:CMAKE_PRESET --target tests }
- if($env:BUILD_CTEST -eq "true") { ctest --preset=$env:CMAKE_PRESET --output-junit Tests/ctest.xml -M Experimental --group Continuous --test-dir $build_directory_full -T Test -T Submit }
- $ctest_model = "Experimental"
- if($env:CI_COMMIT_BRANCH -eq "master") { $ctest_model = "Continuous" }
- if($env:BUILD_CTEST -eq "true") { ctest --preset=$env:CMAKE_PRESET --output-junit Tests/ctest.xml -M $ctest_model --test-dir $build_directory_full -T Test -T Submit }
- |
if($env:CHECK_WARNINGS -eq "true" -and (cat $log_file | Select-String -Pattern ': warning') )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment