From 4318e8ed353064d8f1d531ab3e42c16347f1081b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 27 Apr 2020 12:52:30 -0400 Subject: gitlab-ci: add iwyu job --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ .gitlab/ci/configure_debian10_iwyu.cmake | 4 ++++ 2 files changed, 36 insertions(+) create mode 100644 .gitlab/ci/configure_debian10_iwyu.cmake diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c15c794..9a91d20 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,19 @@ variables: GIT_CLONE_PATH: "$CI_BUILDS_DIR/gitlab-kitware-cmake ci" +.debian10: &debian10 + image: "kitware/cmake:ci-debian10-x86_64-2020-04-27" + + variables: + GIT_CLONE_PATH: "$CI_BUILDS_DIR/gitlab-kitware-cmake ci" + +.debian10_iwyu: &debian10_iwyu + extends: .debian10 + + variables: + CMAKE_CONFIGURATION: debian10_iwyu + CTEST_NO_WARNINGS_ALLOWED: 1 + .fedora31_tidy: &fedora31_tidy extends: .fedora31 @@ -45,6 +58,25 @@ stages: - build - test +build:debian10-iwyu: + <<: + - *debian10_iwyu + stage: build + only: *only_settings + tags: + - build + - docker + - linux + + script: + - .gitlab/ci/sccache.sh + - sccache --start-server + - sccache --show-stats + - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake" + - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake" + - sccache --show-stats + interruptible: true + build:fedora31-tidy: <<: - *fedora31_tidy diff --git a/.gitlab/ci/configure_debian10_iwyu.cmake b/.gitlab/ci/configure_debian10_iwyu.cmake new file mode 100644 index 0000000..1daa581 --- /dev/null +++ b/.gitlab/ci/configure_debian10_iwyu.cmake @@ -0,0 +1,4 @@ +set(CMake_RUN_IWYU ON CACHE BOOL "") +set(IWYU_COMMAND "/usr/bin/include-what-you-use-6.0" CACHE FILEPATH "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") -- cgit v0.12