blob: de9303dd1c267324dd3317e3021ef28d625eaac8 (
plain)
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
41
42
43
44
45
|
.build_matrix: &build_matrix
parallel:
matrix:
- PLATFORM: ["x86_64"]
TYPE: ["dbg", "rel"]
build:
stage: build
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64.ci:latest
script:
- cmake --preset $PLATFORM
- cmake --build --preset $PLATFORM-$TYPE
- cp build/${PLATFORM}/bin/**/kernel.{dis,elf,sym,iso} .
artifacts:
paths:
- kernel.dis
- kernel.elf
- kernel.sym
- kernel.iso
<<: *build_matrix
bht:
stage: build
image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64:15.2.0-4
before_script:
- apt update
- apt install -y build-essential cmake ninja-build lcov libcatch2-dev
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 --config-file .lcovrc --list coverage.info
coverage: '/Total:\|\s*(\d+(\.\d+)?)\%/'
artifacts:
paths:
- coverage.info
expire_in: 24 hours
license_check:
stage: .pre
image:
name: docker.io/fsfe/reuse
entrypoint: [""]
script: reuse lint
|