aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml32
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