aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-18 14:51:19 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-18 14:51:19 +0200
commit1f12f7d107fb0db5ab33a92a20ee05db2489dc28 (patch)
treed3f5bb2293bbfd53ccf78ed551d9a6a8ea5f5d9e /.gitlab-ci.yml
parentcb61eb0c7a2b259ebedeca78ce604742d4bbc0e8 (diff)
parente381b49caf9d29f405cb8c9d7c2b81640135d3ba (diff)
downloadkernel-1f12f7d107fb0db5ab33a92a20ee05db2489dc28.tar.xz
kernel-1f12f7d107fb0db5ab33a92a20ee05db2489dc28.zip
Merge branch 'fmorgner/develop-BA-FS26/code-quality' into 'develop-BA-FS26'
Enable code quality translation of clang-tidy data See merge request teachos/kernel!39
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 26e474e..774708b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,10 +3,14 @@ build:bht:
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest
script:
- cmake --preset bht
- - cmake --build --preset bht-dbg
+ - cmake --build --preset bht-dbg 2>&1 | tee build_output.txt
+ - set -o pipefail
+ - python3 scripts/ci/parse_clang_tidy.py build_output.txt > code-quality-bht.json
artifacts:
paths:
- build/bht/
+ reports:
+ codequality: code-quality-bht.json
expire_in: 5 min
build:bootable:
@@ -14,7 +18,9 @@ build:bootable:
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64.ci:latest
script:
- cmake --preset $PLATFORM
- - cmake --build --preset $PLATFORM-$TYPE
+ - cmake --build --preset $PLATFORM-$TYPE 2>&1 | tee build_output.txt
+ - set -o pipefail
+ - python3 scripts/ci/parse_clang_tidy.py build_output.txt > code-quality-$PLATFORM-$TYPE.json
- cp build/${PLATFORM}/bin/**/kernel.{dis,elf,sym,iso} .
artifacts:
paths:
@@ -22,6 +28,8 @@ build:bootable:
- kernel.elf
- kernel.sym
- kernel.iso
+ reports:
+ codequality: code-quality-$PLATFORM-$TYPE.json
expire_in: 1 week
parallel: