except:
- tags
+.test_template_including_ctest: &test_definition_including_ctest
+ stage: test
+ script:
+ - ci/install-packages.sh
+ - export GV_VERSION=$( cat VERSION )
+ - export OS_ID=$( cat OS_ID )
+ - pushd build
+ - ctest --output-on-failure
+ - popd
+ - python3 -m pytest --verbose --junitxml=report.xml ci/tests.py tests rtest
+ artifacts:
+ reports:
+ junit: ./report.xml
+ except:
+ - tags
+
.linux_test_template: &linux_test_definition
<<: *test_definition
image: "$CI_REGISTRY_IMAGE/$IMAGE:$CI_COMMIT_SHA"
+.linux_test_template_including_ctest: &linux_test_definition_including_ctest
+ <<: *test_definition_including_ctest
+ image: "$CI_REGISTRY_IMAGE/$IMAGE:$CI_COMMIT_SHA"
+
centos7-build:
<<: *rpm_build_definition
needs:
# fail on any compiler warnings
- export CFLAGS=-Werror
- export CXXFLAGS=-Werror
+ - export CMAKE_OPTIONS="-Dwith_cxx_tests=ON"
- echo experimental > COLLECTION
tags:
- linux
# fail on any compiler warnings
- export CFLAGS=-Werror
- export CXXFLAGS=-Werror
- - export CMAKE_OPTIONS="-Duse_sanitizers=ON"
+ - export CMAKE_OPTIONS="-Duse_sanitizers=ON -Dwith_cxx_tests=ON "
- echo experimental > COLLECTION
# override the deb_build_definition artifacts since we need more
# files from the build directory when running ctest in the test
variables:
IMAGE: ubuntu-21.04
-ubuntu21.04-cmake-ASan-test:
- <<: *linux_test_definition
+ubuntu21.04-cmake-ASan-test-including-ctest:
+ <<: *linux_test_definition_including_ctest
before_script:
- export build_system="cmake"
- export CFLAGS=" -g -fsanitize=address,undefined"