-
Notifications
You must be signed in to change notification settings - Fork 18
/
.gitlab-ci.yml
190 lines (162 loc) · 4.42 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# Note: if this directive is deleted, the default image is specified by the
# runner configuration (ci.robotics-erlangen.de:/etc/gitlab-runner/config.toml
default:
image: ci:ubuntu-20.04
stages:
- build
- test
- memcheck
.compile-ra-template:
script:
- mkdir -p build
- cd build
- cmake -GNinja -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
# limit average load to enforce some load distribution between different ninja instances
- cmake --build . -- -l $(( $(nproc) * 3 / 2))
stage: build
cache:
# Increase the number in the cache key to start with
# a fresh build cache. This is only useful in case of
# build system bug and/or updates of ExternalProjects!
key: "$CI_JOB_NAME-2"
paths:
- build/
artifacts:
paths:
- build/bin/
expire_in: 1 day
.test-template:
script:
- "./data/scripts/install_typescript_language_tools.sh"
- "echo running test \"$TEST_PATTERN\""
- "cd build"
- "cmake -GNinja .."
- "ctest --output-on-failure -R \"$TEST_PATTERN\""
stage: test
cache:
# Increase the number in the cache key to start with
# a fresh build cache. This is only useful in case of
# build system bug and/or updates of ExternalProjects!
key: "$CI_JOB_NAME-2"
paths:
- build/
variables:
TEST_PATTERN: "."
#cross-compile-ra:
# script:
# - mkdir -p build
# - cd build
# - ../cmake/mxe-cmake-wrapper -DDOWNLOAD_V8=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
# # limit average load to enforce some load distribution between different ninja instances
# # only compile ra, otherwise the artifact .zip of the bin folder will be to large
# - ../cmake/mxe-cmake-wrapper --build . --target ra -- -l $(( $(nproc) * 3 / 2))
# - ../cmake/mxe-cmake-wrapper --build . --target assemble --
# stage: build
# cache:
# # Increase the number in the cache key to start with
# # a fresh build cache. This is only useful in case of
# # build system bug and/or updates of ExternalProjects!
# key: "$CI_JOB_NAME-2"
# paths:
# - build/
# artifacts:
# paths:
# - build/bin/
# expire_in: 1 day
# image: ci:ubuntu-20.04-cross-compile-windows
# only:
# - schedules
.sanitize-template:
script:
- "./data/scripts/install_typescript_language_tools.sh"
- "mkdir -p build"
- "cd build"
- "cmake -GNinja -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_CXX_FLAGS=\"-fsanitize=address\" -DCMAKE_BUILD_TYPE=Debug .."
- "cmake --build . --target check -- -l $(( $(nproc) * 3 / 2))"
stage: memcheck
cache:
# Increase the number in the cache key to start with
# a fresh build cache. This is only useful in case of
# build system bug and/or updates of ExternalProjects!
key: "$CI_JOB_NAME"
paths:
- build/
dependencies: []
compile-ra:
extends: .compile-ra-template
except:
- schedules
sanitize:
extends: .sanitize-template
except:
- schedules
tests:
extends: .test-template
dependencies:
- compile-ra
except:
- schedules
.compile-ra-schedule:
extends: .compile-ra-template
only:
- schedules
compile-ra-18.04:
extends: .compile-ra-schedule
image: ci:ubuntu-18.04
compile-ra-18.04-no-v8:
extends: .compile-ra-schedule
image: ci:ubuntu-18.04-no-v8
compile-ra-20.04:
extends: .compile-ra-schedule
image: ci:ubuntu-20.04
compile-ra-22.04:
extends: .compile-ra-schedule
image: ci:ubuntu-22.04
.test-schedule:
extends: .test-template
only:
- schedules
tests-18.04:
extends: .test-schedule
image: ci:ubuntu-18.04
dependencies:
- compile-ra-18.04
needs: [compile-ra-18.04]
tests-18.04-no-v8:
extends: .test-schedule
image: ci:ubuntu-18.04-no-v8
dependencies:
- compile-ra-18.04-no-v8
needs: [compile-ra-18.04-no-v8]
tests-20.04:
extends: .test-schedule
image: ci:ubuntu-20.04
dependencies:
- compile-ra-20.04
needs: [compile-ra-20.04]
tests-22.04:
extends: .test-schedule
image: ci:ubuntu-22.04
dependencies:
- compile-ra-22.04
needs: [compile-ra-22.04]
.sanitize-schedule:
extends: .sanitize-template
only:
- schedules
sanitize-18.04:
extends: .sanitize-schedule
image: ci:ubuntu-18.04
needs: [tests-18.04]
sanitize-18.04-no-v8:
extends: .sanitize-schedule
image: ci:ubuntu-18.04-no-v8
needs: [tests-18.04-no-v8]
sanitize-20.04:
extends: .sanitize-schedule
image: ci:ubuntu-20.04
needs: [tests-20.04]
sanitize-22.04:
extends: .sanitize-schedule
image: ci:ubuntu-22.04
needs: [tests-22.04]