-
Notifications
You must be signed in to change notification settings - Fork 376
/
.gitlab-ci.yml
238 lines (202 loc) · 4.09 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
stages:
- test
variables:
GITLAB_MAKE: "make -f .gitlab.mk"
# Jobs templates
.release_only_template: &release_only_definition
only:
refs:
- master
- /^.*-full-ci$/
.docker_test_template: &docker_test_definition
image: "${CI_REGISTRY}/${CI_PROJECT_PATH}/testing/debian-stretch:latest"
stage: test
tags:
- docker_test
.docker_test_clang8_template: &docker_test_clang8_definition
image: "${CI_REGISTRY}/${CI_PROJECT_PATH}/testing/debian-buster:latest"
stage: test
tags:
- docker_test
.deploy_template: &deploy_definition
<<: *release_only_definition
stage: test
tags:
- deploy
script:
- ${GITLAB_MAKE} package
.deploy_test_template: &deploy_test_definition
<<: *release_only_definition
stage: test
tags:
- deploy_test
script:
- ${GITLAB_MAKE} package
.vbox_template: &vbox_definition
stage: test
before_script:
- ${GITLAB_MAKE} vms_start
after_script:
- ${GITLAB_MAKE} vms_shutdown
# Tests
release:
<<: *docker_test_definition
script:
- ${GITLAB_MAKE} test_debian_no_deps
debug:
<<: *docker_test_definition
script:
- ${GITLAB_MAKE} test_coverage_debian_no_deps
release_clang:
<<: *docker_test_definition
variables:
CC: clang
CXX: clang++
script:
- ${GITLAB_MAKE} test_debian_no_deps
release_lto:
<<: *release_only_definition
<<: *docker_test_clang8_definition
variables:
CMAKE_EXTRA_PARAMS: -DENABLE_LTO=ON
script:
- ${GITLAB_MAKE} test_debian_no_deps
release_lto_clang8:
<<: *release_only_definition
<<: *docker_test_clang8_definition
variables:
CC: clang-8
CXX: clang++-8
CMAKE_EXTRA_PARAMS: -DENABLE_LTO=ON
script:
- ${GITLAB_MAKE} test_debian_no_deps
release_asan_clang8:
<<: *docker_test_clang8_definition
script:
- ${GITLAB_MAKE} test_asan_debian_no_deps
osx_13_release:
<<: *release_only_definition
<<: *vbox_definition
tags:
- vms_osx_13
variables:
VMS_NAME: 'osx_13'
VMS_USER: 'tarantool'
VMS_PORT: '2212'
script:
- ${GITLAB_MAKE} vms_test_osx
osx_14_release:
<<: *vbox_definition
tags:
- vms_osx_14
variables:
VMS_NAME: 'osx_14'
VMS_USER: 'tarantool'
VMS_PORT: '2222'
script:
- ${GITLAB_MAKE} vms_test_osx
osx_14_release_lto:
<<: *release_only_definition
<<: *vbox_definition
tags:
- vms_osx_14
variables:
EXTRA_ENV: "export CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON ;"
VMS_NAME: 'osx_14'
VMS_USER: 'tarantool'
VMS_PORT: '2222'
script:
- ${GITLAB_MAKE} vms_test_osx
freebsd_12_release:
<<: *vbox_definition
tags:
- vms_freebsd_12
variables:
VMS_NAME: 'freebsd_12'
VMS_USER: 'vagrant'
VMS_PORT: '2232'
MAKE: 'gmake'
script:
- ${GITLAB_MAKE} vms_test_freebsd
# Packs
centos_6:
<<: *deploy_definition
variables:
OS: 'el'
DIST: '6'
centos_7:
<<: *deploy_test_definition
variables:
OS: 'el'
DIST: '7'
centos_8:
<<: *deploy_test_definition
variables:
OS: 'el'
DIST: '8'
fedora_28:
<<: *deploy_test_definition
variables:
OS: 'fedora'
DIST: '28'
fedora_29:
<<: *deploy_test_definition
variables:
OS: 'fedora'
DIST: '29'
fedora_30:
<<: *deploy_test_definition
variables:
OS: 'fedora'
DIST: '30'
ubuntu_14_04:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'trusty'
ubuntu_16_04:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'xenial'
ubuntu_18_04:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'bionic'
ubuntu_18_10:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'cosmic'
ubuntu_19_04:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'disco'
ubuntu_19_10:
<<: *deploy_definition
variables:
OS: 'ubuntu'
DIST: 'eoan'
debian_8:
<<: *deploy_definition
variables:
OS: 'debian'
DIST: 'jessie'
debian_9:
<<: *deploy_definition
variables:
OS: 'debian'
DIST: 'stretch'
debian_10:
<<: *deploy_definition
variables:
OS: 'debian'
DIST: 'buster'
static_build:
<<: *deploy_test_definition
variables:
RUN_TESTS: 'ON'
script:
- ${GITLAB_MAKE} static_build