[education/rkward] /: Add clazy/ubuntu 24.10 pipeline (mostly copied from okular)
Thomas Friedrichsmeier
null at kde.org
Sun Sep 21 20:45:24 BST 2025
Git commit 6bb16b7c40efb2db9084698669e9be425f7a5529 by Thomas Friedrichsmeier.
Committed on 21/09/2025 at 19:36.
Pushed by tfry into branch 'master'.
Add clazy/ubuntu 24.10 pipeline (mostly copied from okular)
M +29 -0 .gitlab-ci.yml
https://invent.kde.org/education/rkward/-/commit/6bb16b7c40efb2db9084698669e9be425f7a5529
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6f27b315e..309c3ab03 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,3 +29,32 @@ clang_format:
script:
- find rkward \( -name "*.cpp" -or -name "*.h" -or -name "*.js" \) -exec clang-format-19 -i {} \;
- git diff --exit-code
+
+# setup mix-and-matched from okular, removing some extras
+# combined check for building on "old" distribution (should ideally be previous ubuntu LTS, but 24.10 is the first to contain KF6, so using that)
+build_clazy_ubuntu_24_10:
+ stage: build
+ image: ubuntu:24.10
+ tags:
+ - Linux
+ only:
+ - merge_requests
+ variables:
+ #CLAZY_CHECKS: level0,level1,level2,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch
+ CXXFLAGS: -Werror -Wno-deprecated-declarations
+ CC: clang
+ CXX: clazy
+ before_script:
+ - sed -i 's/ deb/ deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
+ - sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list.d/ubuntu.sources
+ - sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list.d/ubuntu.sources
+ - apt-get update
+ - apt-get install --yes eatmydata
+ - eatmydata apt-get install --yes --no-install-recommends clazy
+ # rkward build deps:
+ - eatmydata apt-get install --yes --no-install-recommends cmake extra-cmake-modules pkg-kde-tools debhelper qt6-webengine-dev libkf6notifications-dev gettext libkf6coreaddons-dev libkf6crash-dev libkf6guiaddons-dev libkf6i18n-dev libkf6iconthemes-dev libkf6breezeicons-dev libkf6texteditor-dev libkf6textwidgets-dev libkf6windowsystem-dev libkf6xmlgui-dev pkgconf r-base-dev
+ script:
+ - mkdir -p build && cd build
+ - cmake ..
+ - CLAZY_IGNORE_DIRS="3rdparty" make -j 5
+ artifacts: null
More information about the rkward-tracker
mailing list