-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
88 lines (75 loc) · 2.11 KB
/
.gitlab-ci.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
stages:
- test
- fuzzy
- release
.env-setup:
tags: [ ga ]
before_script:
- apt-get update -yqq
- apt-get install --no-install-recommends -yqq cmake valgrind python3 python3-pip python3-virtualenv git libtool build-essential autoconf automake
- virtualenv venv
- source venv/bin/activate
debug-test:
extends: .env-setup
image: gcc:12-bookworm
stage: test
script:
- cmake --preset dev
- cmake --build --preset dev
- ctest --output-junit report.xml --output-on-failure --preset dev
- pip install valgrind-codequality gcovr
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
- ctest -T memcheck --test-dir build/dev
- valgrind-codequality --input-file build/dev/tests/valgrind.xml --output-file valgrind.json
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
reports:
junit: build/dev/report.xml
codequality: valgrind.json
coverage_report:
coverage_format: cobertura
path: coverage.xml
mingw-test:
extends: .env-setup
image:
name: purplekarrot/mingw-w64-x86-64
entrypoint: [""]
stage: test
script:
## old version of cmake, presets won't work
- cmake -B build -S .
-DURC_FETCH_DEPS:BOOL=ON
-DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_SYSTEM_NAME=Windows
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc-posix
-DCMAKE_FIND_ROOT_PATH:PATH=/usr/x86_64-w64-mingw32/
- cmake --build build
mac-test:
tags: [ osx-ia ]
stage: test
script:
- virtualenv venv
- source venv/bin/activate
- cmake --preset default
- cmake --build --preset default
fuzzy-test:
extends: .env-setup
image: silkeh/clang:15-bookworm
stage: fuzzy
script:
- cmake --preset fuzzy
- cmake --build --preset fuzzy
- ctest --preset fuzzy -R fuzzy --output-on-failure
release:
extends: .env-setup
image: gcc:12-bookworm
stage: release
script:
- cmake --preset default
- cmake --build --preset default
- cmake --build --preset default --target install
artifacts:
expire_in: 2 hrs
paths:
- install/default