-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (38 loc) · 1.8 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
40 lines (38 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: 2020-2026 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: CC0-1.0
include:
- project: sysadmin/ci-utilities
file:
- /gitlab-templates/freebsd-qt6.yml
- /gitlab-templates/windows-qt6.yml
- /gitlab-templates/flatpak.yml
# - /gitlab-templates/cppcheck.yml
- /gitlab-templates/craft-windows-x86-64-qt6.yml
- /gitlab-templates/craft-windows-appx-qt6.yml
- /gitlab-templates/craft-macos-arm64-qt6.yml
- /gitlab-templates/craft-macos-x86-64-qt6.yml
- /gitlab-templates/craft-appimage-qt6.yml
- /gitlab-templates/alpine-qt6.yml
- /gitlab-templates/linux-qt6-next.yml
- /gitlab-templates/pre-commit.yml
- /gitlab-templates/linux-qt6.yml
build_clazy:
extends:
- .ci_linux_base
- .suse_tumbleweed_qt6stable
rules:
# only run on merge requests
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
variables:
CLAZY_CHECKS: level0,level1,qstring-allocations,no-qstring-arg,no-connect-not-normalized,no-fully-qualified-moc-types,no-const-signal-or-slot,no-qproperty-without-notify,no-incorrect-emit,no-connect-3arg-lambda,no-range-loop-reference,no-wrong-qevent-cast,no-detaching-temporary,no-child-event-qobject-cast
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/$CI_PROJECT_NAME-build
- cd /tmp/$CI_PROJECT_NAME-build
# we don't care about clazy issues in tests
- cmake -DENABLE_PCH=OFF -DBUILD_TESTING=OFF -G Ninja -DCMAKE_INSTALL_PREFIX=$CI_PROJECT_DIR/_install -DKF_SKIP_PO_PROCESSING=True -DKF6DocTools_FOUND=false $CI_PROJECT_DIR
- ninja -k 0
artifacts: null