mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 12:16:40 +08:00
gitlab-ci: add iwyu job
This commit is contained in:
@@ -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
|
||||
|
4
.gitlab/ci/configure_debian10_iwyu.cmake
Normal file
4
.gitlab/ci/configure_debian10_iwyu.cmake
Normal file
@@ -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")
|
Reference in New Issue
Block a user