Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b65bff62 authored by hhakim's avatar hhakim
Browse files

Optimize gitlab pipeline by executing the ctest pipeline only if the C++ tests...

Optimize gitlab pipeline by executing the ctest pipeline only if the C++ tests or the C++ library code changed.
parent 2ea62d1c
Branches
Tags
No related merge requests found
...@@ -15,6 +15,8 @@ stages: ...@@ -15,6 +15,8 @@ stages:
ctest: ctest:
<<: *ctest_script <<: *ctest_script
variables: {SLOW_TESTS: "OFF", BUILD_MULTITHREAD: "ON"} # the CDashConfScript is able to retrieve OpenMP_gomp_LIBRARY and OpenMP_INC_DIR from environment (it's necessary on macOS, so the runner's env. must be configured) variables: {SLOW_TESTS: "OFF", BUILD_MULTITHREAD: "ON"} # the CDashConfScript is able to retrieve OpenMP_gomp_LIBRARY and OpenMP_INC_DIR from environment (it's necessary on macOS, so the runner's env. must be configured)
script:
- if git log --oneline -n 1 --name-status | grep -E '\s+(src/|misc/test/src/C++)'; then ctest -O ctest.log -S ./CDashConfScript.cmake -j4; else echo 'nothing new to test in C++ code'; fi # C++ tests are executed only if something was modified in C++ lib or C++ tests
except: except:
- schedules - schedules
- tags - tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment