CI: Add release track in cdash

Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
(cherry picked from commit 3a89b477f17983a2e0e68cf77ae5fbe25a96ce0f)
This commit is contained in:
Vicente Adolfo Bolea Sanchez 2021-04-29 16:15:23 -04:00
parent 1cf9ebd5f0
commit 7aa0a54029

@ -52,10 +52,16 @@ if (NOT CTEST_CMAKE_GENERATOR)
endif ()
# Determine the track to submit to.
set(CTEST_TRACK "Experimental")
if ("$ENV{CI_COMMIT_REF_NAME}" STREQUAL "master")
set(CTEST_TRACK "merge-requests")
if("$ENV{CI_COMMIT_REF_NAME}" STREQUAL "master")
set(CTEST_TRACK "master")
elseif("$ENV{CI_COMMIT_REF_NAME}" STREQUAL "release")
set(CTEST_TRACK "release")
endif()
if("$ENV{VTKM_CI_NIGHTLY}" STREQUAL "TRUE")
set(CTEST_TRACK "Nightly")
endif ()
endif()
if (CTEST_CMAKE_GENERATOR STREQUAL "Unix Makefiles")
include(ProcessorCount)