mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
gitlab-ci: configure continuous job ctest build name and model accordingly
This commit is contained in:
@@ -51,11 +51,13 @@ set(ctest_group "Experimental")
|
||||
if (NOT "$ENV{CI_MERGE_REQUEST_ID}" STREQUAL "")
|
||||
set(ctest_group "merge-requests")
|
||||
elseif (NOT "$ENV{CMAKE_CI_PROJECT_CONTINUOUS_BRANCH}" STREQUAL "" AND "$ENV{CMAKE_CI_PROJECT_CONTINUOUS_BRANCH}" STREQUAL "$ENV{CI_COMMIT_BRANCH}" AND NOT "$ENV{CMAKE_CI_JOB_CONTINUOUS}" STREQUAL "")
|
||||
set(ctest_model "Continuous")
|
||||
if (NOT "$ENV{CMAKE_CI_JOB_HELP}" STREQUAL "")
|
||||
set(ctest_group "Continuous Help")
|
||||
else()
|
||||
set(ctest_group "Continuous")
|
||||
endif()
|
||||
string(PREPEND CTEST_BUILD_NAME "continuous-")
|
||||
elseif ("$ENV{CI_PROJECT_PATH}" STREQUAL "cmake/cmake")
|
||||
if ("$ENV{CI_COMMIT_REF_NAME}" STREQUAL "master")
|
||||
set(ctest_group "master")
|
||||
|
||||
Reference in New Issue
Block a user