diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-27 16:52:30 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-29 15:18:02 (GMT) |
commit | 4318e8ed353064d8f1d531ab3e42c16347f1081b (patch) | |
tree | c2a15549171cb5eb3af6d7b6979be56114636cd8 | |
parent | 0866b9253bcb270b1bb737ce1fee3a4c8111969e (diff) | |
download | CMake-4318e8ed353064d8f1d531ab3e42c16347f1081b.zip CMake-4318e8ed353064d8f1d531ab3e42c16347f1081b.tar.gz CMake-4318e8ed353064d8f1d531ab3e42c16347f1081b.tar.bz2 |
gitlab-ci: add iwyu job
-rw-r--r-- | .gitlab-ci.yml | 32 | ||||
-rw-r--r-- | .gitlab/ci/configure_debian10_iwyu.cmake | 4 |
2 files changed, 36 insertions, 0 deletions
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") |