diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-02 11:06:12 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-02 11:06:12 +0200 |
| commit | 68b673fe0800067dafa7a47469eb89617bfd1b17 (patch) | |
| tree | 305f5bfba013c746c39f32d7b10e02085f6f1d18 | |
| parent | 4a783fa81815dd40764b3e96e34e550b15a08481 (diff) | |
| download | teachos-68b673fe0800067dafa7a47469eb89617bfd1b17.tar.xz teachos-68b673fe0800067dafa7a47469eb89617bfd1b17.zip | |
ci: split build and test
| -rw-r--r-- | .gitlab-ci.yml | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 661ce63..139eb0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ -.build_matrix: &build_matrix - parallel: - matrix: - - PLATFORM: ["x86_64"] - TYPE: ["dbg", "rel"] +build:bht: + stage: build + image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest + script: + - cmake --preset bht + - cmake --build --preset bht-dbg + artifacts: + paths: + - build/bht/ + expire_in: 5 min -build: +build:bootable: stage: build image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64.ci:latest script: @@ -18,14 +23,17 @@ build: - kernel.sym - kernel.iso expire_in: 1 week - <<: *build_matrix -bht: - stage: build + parallel: + matrix: + - PLATFORM: ["x86_64"] + TYPE: ["dbg", "rel"] + +test:bht: + stage: test image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest + needs: ["build:bht"] script: - - cmake --preset bht - - cmake --build --preset bht-dbg - ctest --preset bht-dbg - lcov --config-file .lcovrc --capture --directory $(pwd) --output-file coverage.info - lcov --list coverage.info @@ -36,10 +44,8 @@ bht: coverage: '/Total:\|\s*(\d+(?:\.\d+)?)\%/' artifacts: paths: - - coverage.info - coverage/ expire_in: 24 hours - when: always reports: coverage_report: coverage_format: cobertura |
