CI: Add Junit support

Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
This commit is contained in:
Vicente Adolfo Bolea Sanchez 2021-08-12 19:35:39 -04:00
parent 4b6175980c
commit 5353934e6b
3 changed files with 15 additions and 0 deletions

@ -202,6 +202,9 @@ stages:
- build/*/*/*/*.png
- build/*/*/*/*.pnm
- build/*/*/*/*.pmm
reports:
junit:
- build/junit.xml
.cmake_memcheck_linux: &cmake_memcheck_linux
stage: test
@ -219,6 +222,9 @@ stages:
- build/*.png
- build/*.pnm
- build/*.pmm
reports:
junit:
- build/junit.xml
include:
- local: '/.gitlab/ci/centos7.yml'

@ -10,6 +10,9 @@
##
##=============================================================================
# We need this CMake versions for tests
cmake_minimum_required(VERSION 3.21)
# Read the files from the build directory that contain
# host information ( name, parallel level, etc )
include("$ENV{CI_PROJECT_DIR}/build/CIState.cmake")
@ -33,6 +36,7 @@ ctest_test(APPEND
RETURN_VALUE test_result
EXCLUDE "${test_exclusions}"
REPEAT "UNTIL_PASS:3"
OUTPUT_JUNIT "${CTEST_BINARY_DIRECTORY}/junit.xml"
)
message(STATUS "ctest_test RETURN_VALUE: ${test_result}")

@ -6,6 +6,11 @@
# Even if we could, it could change if other runners on the machine
# could run at the same time, so we drop it.
GIT_CLONE_PATH: "$CI_BUILDS_DIR\\vtkm ci"
artifacts:
reports:
junit:
- build/junit.xml
.windows_vs2019:
variables: