diff --git a/.gitlab/ci/ctest_submit_build.cmake b/.gitlab/ci/ctest_submit_build.cmake new file mode 100644 index 000000000..5b66d6a9d --- /dev/null +++ b/.gitlab/ci/ctest_submit_build.cmake @@ -0,0 +1,23 @@ +##============================================================================= +## +## Copyright (c) Kitware, Inc. +## All rights reserved. +## See LICENSE.txt for details. +## +## This software is distributed WITHOUT ANY WARRANTY; without even +## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +## PURPOSE. See the above copyright notice for more information. +## +##============================================================================= + +# We need this CMake versions for tests +cmake_minimum_required(VERSION 3.18) + +# Read the files from the build directory that contain +# host information ( name, parallel level, etc ) +include("$ENV{CI_PROJECT_DIR}/build/CIState.cmake") +ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}") + +ctest_start(APPEND) +ctest_submit(PARTS Build BUILD_ID build_id) +message(STATUS "Build submission build_id: ${build_id}")