Enable ci that compiles without testing

This is to ensure that none of the regular code depends on testing
libraries that are not built.
This commit is contained in:
Kenneth Moreland 2022-03-18 10:41:02 -06:00
parent d0679d868c
commit 8d5e636ac4
2 changed files with 19 additions and 0 deletions

@ -36,3 +36,21 @@ test:centos8_sanitizer:
- build:centos8_sanitizer
needs:
- build:centos8_sanitizer
# Build on centos8 without tests
# Uses gcc 8.2.1
build:centos8:
tags:
- build
- vtkm
- docker
- linux
extends:
- .centos8
- .cmake_build_linux
- .run_automatically
variables:
CMAKE_BUILD_TYPE: RelWithDebInfo
CMAKE_GENERATOR: "Unix Makefiles"
VTKM_SETTINGS: "serial+no_testing"

@ -58,6 +58,7 @@ foreach(option IN LISTS options)
elseif(no_testing STREQUAL option)
set(VTKm_ENABLE_TESTING "OFF" CACHE STRING "")
set(VTKm_ENABLE_TESTING_LIBRARY "OFF" CACHE STRING "")
elseif(examples STREQUAL option)
set(VTKm_ENABLE_EXAMPLES "ON" CACHE STRING "")