[system/kio-snapshot] /: add clazy to CI

Bharadwaj Raju <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ec8c44db554c906be1ba8ba08b34cfca773556d6 by Bharadwaj Raju.
Committed on 22/07/2026 at 04:43.
Pushed by bharadwaj-raju into branch 'master'.

add clazy to CI

M  +19   -0    .gitlab-ci.yml

https://invent.kde.org/system/kio-snapshot/-/commit/ec8c44db554c906be1ba8ba08b34cfca773556d6

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6a35668..20622ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,3 +7,22 @@ include:
       - /gitlab-templates/reuse-lint.yml
       - /gitlab-templates/linux-qt6.yml
       - /gitlab-templates/json-validation.yml
+
+# clazy, thanks to Kate for the config
+build_clazy:
+  extends:
+    - .ci_linux_base
+    - .suse_tumbleweed_qt6stable
+  variables:
+    CLAZY_CHECKS: level0,level1,qstring-allocations,no-qstring-arg,no-connect-not-normalized,no-const-signal-or-slot,no-qproperty-without-notify,no-wrong-qevent-cast,no-child-event-qobject-cast,no-fully-qualified-moc-types,no-skipped-base-method
+    CC: clang
+    CXX: clazy
+  script:
+    - git config --global --add safe.directory $CI_PROJECT_DIR
+    - python3 -u ci-utilities/run-ci-build.py --project $CI_PROJECT_NAME --branch $CI_COMMIT_REF_NAME --platform Linux/Qt6/Shared --only-setup-environment
+    - mkdir -p /tmp/kio-snapshot_build
+    - cd /tmp/kio-snapshot_build
+    # we don't care about clazy issues in tests
+    - cmake -DENABLE_PCH=OFF -DBUILD_TESTING=OFF -DWARNINGS_AS_ERRORS=ON -G Ninja -DCMAKE_INSTALL_PREFIX=$CI_PROJECT_DIR/_install -DKF6DocTools_FOUND=false $CI_PROJECT_DIR
+    - ninja -k 0
+  artifacts: null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.