aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml19
1 files changed, 14 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7752705a..ca18bd90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,18 +3,19 @@ build:bht:
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest
script:
- cmake --preset $PRESET
- - cmake --build --preset $PRESET-dbg --target all all_verify_interface_header_sets --parallel $(nproc) 2>&1 | tee build_output.txt
+ - cmake --build --preset $PRESET-$TYPE --target all all_verify_interface_header_sets --parallel $(nproc) 2>&1 | tee build_output.txt
- set -o pipefail
- - python3 scripts/ci/parse_clang_tidy.py build_output.txt > code-quality-$PRESET.json
+ - python3 scripts/ci/parse_clang_tidy.py build_output.txt > code-quality-$PRESET-$TYPE.json
artifacts:
paths:
- build/$PRESET/
reports:
- codequality: code-quality-$PRESET.json
+ codequality: code-quality-$PRESET-$TYPE.json
expire_in: 15 min
parallel:
matrix:
- PRESET: ["bht", "bht-stress"]
+ TYPE: ["dbg", "rel"]
build:bootable:
stage: build
@@ -43,7 +44,7 @@ test:bht:
stage: test
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest
script:
- - ctest --preset bht-dbg --parallel --output-on-failure
+ - ctest --preset bht-$TYPE --parallel --output-on-failure
- lcov --quiet --config-file .lcovrc --capture --directory $(pwd) --output-file coverage.info
- lcov --quiet --config-file .lcovrc --list coverage.info
- genhtml --quiet --config-file .lcovrc --prefix $(pwd) --output-directory coverage coverage.info
@@ -60,26 +61,34 @@ test:bht:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
junit: build/bht/**/bht_results/*.xml
+ parallel:
+ matrix:
+ - TYPE: ["dbg", "rel"]
needs:
- job: build:bht
parallel:
matrix:
- PRESET: ["bht"]
+ TYPE: ["$[[ matrix.TYPE ]]"]
test:bht-stress:
stage: test
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest
script:
- - TSAN_OPTIONS=halt_on_error=1 ctest --preset bht-stress-dbg --parallel --output-on-failure
+ - TSAN_OPTIONS=halt_on_error=1 ctest --preset bht-stress-$TYPE --parallel --output-on-failure
artifacts:
expire_in: 24 hours
reports:
junit: build/bht-stress/**/bht_results/*.xml
+ parallel:
+ matrix:
+ - TYPE: ["dbg", "rel"]
needs:
- job: build:bht
parallel:
matrix:
- PRESET: ["bht-stress"]
+ TYPE: ["$[[ matrix.TYPE ]]"]
license_check:
stage: .pre