summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-04 10:57:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-06-04 10:57:51 (GMT)
commitccaaca4e7d2a0d3ad981333bb36ceff779828c4f (patch)
tree3b3b5266a0bc9d9e1ecf73fc430875452d44be23 /.gitlab
parentc845b7ef379422a6490af67158dbe9e13c22d077 (diff)
parentda14f4e19e72f2d7b7ea71ed420880358715a8f2 (diff)
downloadCMake-ccaaca4e7d2a0d3ad981333bb36ceff779828c4f.zip
CMake-ccaaca4e7d2a0d3ad981333bb36ceff779828c4f.tar.gz
CMake-ccaaca4e7d2a0d3ad981333bb36ceff779828c4f.tar.bz2
Merge topic 'ci-clang-analyzer'
da14f4e19e gitlab-ci: add job to build with clang-analyzer adc38da49f ci: add clang-analyzer to Fedora base image b6c4d93dcd clang-analyzer: Suppress warnings in intentional use-after-move cases c1b575f4d1 clang-analyzer: rename from scan-build in comments dbfb50cd72 cmFileAPICodemodel: Assert input in DirectoryObject::DumpInstaller 410bf8ed4f cmStandardLevelResolver: Fix size assertion in constructor 82584b99e3 jsoncpp: Revert "Code style: add missed explicit 'this->'" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6189
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/configure_fedora34_clang_analyzer.cmake1
-rwxr-xr-x.gitlab/ci/docker/fedora34/install_deps.sh1
-rw-r--r--.gitlab/ci/env_fedora34_clang_analyzer.sh2
-rw-r--r--.gitlab/os-linux.yml11
4 files changed, 14 insertions, 1 deletions
diff --git a/.gitlab/ci/configure_fedora34_clang_analyzer.cmake b/.gitlab/ci/configure_fedora34_clang_analyzer.cmake
new file mode 100644
index 0000000..e00f8a7
--- /dev/null
+++ b/.gitlab/ci/configure_fedora34_clang_analyzer.cmake
@@ -0,0 +1 @@
+include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora34_common.cmake")
diff --git a/.gitlab/ci/docker/fedora34/install_deps.sh b/.gitlab/ci/docker/fedora34/install_deps.sh
index dfd7db8..7d099fe 100755
--- a/.gitlab/ci/docker/fedora34/install_deps.sh
+++ b/.gitlab/ci/docker/fedora34/install_deps.sh
@@ -25,6 +25,7 @@ dnf install --setopt=install_weak_deps=False -y \
# Install lint tools.
dnf install --setopt=install_weak_deps=False -y \
+ clang-analyzer \
codespell
# Tools needed for the test suite.
diff --git a/.gitlab/ci/env_fedora34_clang_analyzer.sh b/.gitlab/ci/env_fedora34_clang_analyzer.sh
new file mode 100644
index 0000000..d732c0b
--- /dev/null
+++ b/.gitlab/ci/env_fedora34_clang_analyzer.sh
@@ -0,0 +1,2 @@
+export CC=/usr/libexec/ccc-analyzer
+export CXX=/usr/libexec/c++-analyzer
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index dcaa643..a8c07d8 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -69,7 +69,7 @@
### Fedora
.fedora34:
- image: "kitware/cmake:ci-fedora34-x86_64-2021-05-21"
+ image: "kitware/cmake:ci-fedora34-x86_64-2021-06-03"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci/long file name for testing purposes"
@@ -85,6 +85,15 @@
CTEST_NO_WARNINGS_ALLOWED: 1
CMake_SKIP_INSTALL: 1
+.fedora34_clang_analyzer:
+ extends: .fedora34
+
+ variables:
+ CMAKE_CONFIGURATION: fedora34_clang_analyzer
+ CMAKE_BUILD_TYPE: Debug
+ CTEST_NO_WARNINGS_ALLOWED: 1
+ CMake_SKIP_INSTALL: 1
+
.fedora34_sphinx:
extends: .fedora34