From aca3192cf8874fb66756f0dc83eb1b29d4533749 Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Tue, 25 Oct 2022 15:39:47 -0400 Subject: [PATCH] CI: add ctest_submit_build.cmake --- .gitlab/ci/ctest_submit_build.cmake | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitlab/ci/ctest_submit_build.cmake 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}")