-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
330 lines (307 loc) · 8.62 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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
variables:
download_url: "https://common-lisp.net/project/cmucl/downloads/snapshots/2024/08"
version: "2024-08-x86"
bootstrap: ""
stages:
- install
- build
- test
- ansi-test
- benchmark
- analyze
cache:
linux:install:
stage: install
tags:
- linux
artifacts:
paths:
- snapshot/
script:
- wget -nv $download_url/cmucl-$version-linux.tar.bz2
- wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
- mkdir snapshot
- (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
linux:build:
stage: build
tags:
- linux
artifacts:
paths:
- dist/
- linux-2/*.log
- linux-3/*.log
- linux-4/
needs:
- job: linux:install
artifacts: true
script:
# Do cross compile first
#- bin/create-target.sh xtarget x86_linux_clang
#- bin/create-target.sh xcross x86_linux_clang
#- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
# Regular build using the cross-compiled result or snapshot. The
# analyzer job requires gcc, so make sure we build with gcc here
# instead of clang.
- bin/build.sh $bootstrap -R -C "x86_linux" -o snapshot/bin/lisp
# - bin/build.sh $bootstrap -R -C "x86_linux" -o snapshot/bin/lisp
# Use -V to specify the version in case some tag makes git
# describe return something that make-dist.sh doesn't like.
- bin/make-dist.sh -V `git describe --dirty` -I dist linux-4
linux:cross-build:
stage: build
tags:
- linux
artifacts:
paths:
- xdist/
- linux-2/*.log
- linux-3/*.log
- linux-4/*.log
# The lisp directory is needed for the static analyzer job.
- linux-4/lisp
needs:
# Normally need the linux:install stage to get the compiler to
# use. But for #337, we need the normal build from linux:build to
# do the cross-compile. Once the snapshot is made, we can use
# linux:install instead.
- job: linux:build
#- job: linux:install
artifacts: true
script:
- bin/create-target.sh xtarget
- bin/create-target.sh xcross
- bin/cross-build-world.sh -crl xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp dist/bin/lisp
- bin/build.sh -b xlinux $bootstrap -R -C "" -o xtarget/lisp/lisp
- bin/make-dist.sh -V `git describe --dirty` -I xdist xlinux-4
linux:test:
stage: test
tags:
- linux
artifacts:
paths:
- ansi-test/test.out
- test.log
needs:
# Needs artifacts from build (dist/)
- job: linux:build
artifacts: true
script:
- bin/run-unit-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
linux:cross-test:
stage: test
tags:
- linux
artifacts:
paths:
- ansi-test/test.out
- cross-test.log
needs:
# Needs artifacts from build (dist/)
- job: linux:cross-build
artifacts: true
script:
- bin/run-unit-tests.sh -l xdist/bin/lisp 2>&1 | tee cross-test.log
linux:ansi-test:
stage: ansi-test
tags:
- linux
artifacts:
paths:
- ansi-test/test.out
needs:
# Needs artifacts from build (dist/)
- job: linux:build
artifacts: true
script:
- bin/run-ansi-tests.sh -l dist/bin/lisp
linux:benchmark:
stage: benchmark
tags:
- linux
artifacts:
paths:
- benchmarks/cl-bench/results
needs:
# Needs artifacts from install (snapshot/) and build (dist/)
- job: linux:install
artifacts: true
- job: linux:build
script:
- cd benchmarks/cl-bench
- mkdir tmp
- CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
- CMUCL=../../dist/bin/lisp ./run-cmucl.sh
- ../../snapshot/bin/lisp -load report
osx:install:
stage: install
tags:
- macos-virtualbox
artifacts:
paths:
- snapshot/
script:
- echo PATH = $PATH
- ls -F /usr/local/bin
- type -all gitlab-runner
- /opt/local/bin/curl -o cmucl-$version-darwin.tar.bz2 $download_url/cmucl-$version-darwin.tar.bz2
- mkdir snapshot
- (cd snapshot; tar xjf ../cmucl-$version-darwin.tar.bz2)
osx:build:
stage: build
tags:
- macos-virtualbox
artifacts:
paths:
- dist/
- darwin-2/*.log
- darwin-3/*.log
- darwin-4/*.log
needs:
- job: osx:install
artifacts: true
script:
# Do cross compile first
#- bin/create-target.sh xtarget x86_darwin
#- bin/create-target.sh xcross x86_darwin
#- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
# Regular build using the cross-compiled result or snapshot.
# Need /opt/local/bin to get msgmerge and msgfmt programs.
- PATH=/opt/local/bin:$PATH bin/build.sh $bootstrap -R -C "" -o snapshot/bin/lisp
# Use -V to specify the version in case some tag makes git
# describe return something that make-dist.sh doesn't like.
- bin/make-dist.sh -V `git describe --dirty` -I dist darwin-4
osx:test:
stage: test
tags:
- macos-virtualbox
artifacts:
paths:
- ansi-test/test.out
- test.log
needs:
# Needs artifacts from build (dist/)
- job: osx:build
artifacts: true
script:
- echo LANG = $LANG
- bin/run-unit-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
osx:ansi-test:
stage: ansi-test
tags:
- macos-virtualbox
artifacts:
paths:
- ansi-test/test.out
needs:
# Needs artifacts from build (dist/)
- job: osx:build
artifacts: true
script:
# NB: sometimes we can't clone the ansi-test repo (bad cert!?!).
# Manually cloning it in the gitlab build dir helps with this
# issue until we can figure out what's going on.
- bin/run-ansi-tests.sh -l dist/bin/lisp
osx:benchmark:
stage: benchmark
tags:
- macos-virtualbox
artifacts:
paths:
- benchmarks/cl-bench/results
needs:
# Needs artifacts from install (snapshot/) and build (dist/)
- job: osx:install
artifacts: true
- job: osx:build
script:
- cd benchmarks/cl-bench
- mkdir tmp
- CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
- CMUCL=../../dist/bin/lisp ./run-cmucl.sh
- ../../snapshot/bin/lisp -load report
# Optional job that runs the static analyzer. It needs the files from
# the linux-4 directory built in the linux:build job.
linux:static-analyzer:
stage: analyze
when: manual
tags:
- linux
artifacts:
paths:
- analyzer.log
needs:
- job: linux:build
artifacts: true
script:
# Analysis can generate huge amounts of output. For now just save
# the results to the log file instead of also having it go to the
# console. If someday there's less or no output, we can consider
# having the logs go to the console too.
- make -C linux-4/lisp clean
- make -C linux-4/lisp CFLAGS=-fanalyzer > analyzer.log 2>&1
opensuse:install:
stage: install
tags:
- opensuse
artifacts:
paths:
- snapshot/
script:
- wget -nv $download_url/cmucl-$version-linux.tar.bz2
- wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
- mkdir snapshot
- (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
opensuse:build:
stage: build
tags:
- opensuse
artifacts:
paths:
- dist/
- linux-2/*.log
- linux-3/*.log
- linux-4/
needs:
- job: opensuse:install
artifacts: true
script:
# Do cross compile first
#- bin/create-target.sh xtarget x86_linux_clang
#- bin/create-target.sh xcross x86_linux_clang
#- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
# Regular build using the cross-compiled result or snapshot. The
# analyzer job requires gcc, so make sure we build with gcc here
# instead of clang.
- bin/build.sh $bootstrap -R -C "x86_linux" -o snapshot/bin/lisp
# - bin/build.sh $bootstrap -R -C "x86_linux" -o snapshot/bin/lisp
# Use -V to specify the version in case some tag makes git
# describe return something that make-dist.sh doesn't like.
- bin/make-dist.sh -V `git describe --dirty` -I dist linux-4
opensuse:test:
stage: test
tags:
- linux
artifacts:
paths:
- ansi-test/test.out
- test.log
needs:
# Needs artifacts from build (dist/)
- job: opensuse:build
artifacts: true
script:
- bin/run-unit-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
opensuse:ansi-test:
stage: ansi-test
tags:
- linux
artifacts:
paths:
- ansi-test/test.out
needs:
# Needs artifacts from build (dist/)
- job: opensuse:build
artifacts: true
script:
- bin/run-ansi-tests.sh -l dist/bin/lisp