gitlab-ci.yml 6.68 KB
Newer Older
1
2
3
4
5
6
7
###############################################################################
# Global configuration
###############################################################################

variables:
  # Just let the runner fetch and update the submodules for us.
  GIT_SUBMODULE_STRATEGY: normal
8
  ABCL_IMAGE: clfoundation/abcl
Eric Timmons's avatar
Eric Timmons committed
9
  ABCL_TAG: latest
10
11
  CCL_IMAGE: clfoundation/ccl
  CCL_TAG: latest
Eric Timmons's avatar
Eric Timmons committed
12
13
  CLASP_IMAGE: clfoundation/clasp
  CLASP_TAG: latest
Eric Timmons's avatar
Eric Timmons committed
14
15
  CLISP_IMAGE: clfoundation/clisp
  CLISP_TAG: latest
Eric Timmons's avatar
Eric Timmons committed
16
17
  CMUCL_IMAGE: clfoundation/cmucl
  CMUCL_TAG: latest
18
19
20
21
  ECL_IMAGE: clfoundation/ecl
  ECL_TAG: latest
  SBCL_IMAGE: clfoundation/sbcl
  SBCL_TAG: latest
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


# This causes pipelines to be created only on the default branch, tags, merge
# requests, and when triggered via the web interface.
workflow:
  rules:
    - if: $CI_MERGE_REQUEST_IID
    - if: $CI_COMMIT_TAG
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == "web"

# Split regression testing into a separate stage than upgrade tests. The
# upgrade tests tend to run slower and are generally less important than
# regression tests for most changes.
stages:
  - build
  - regression
  - upgrade

###############################################################################
# Build jobs
###############################################################################

Build ASDF:
  stage: build
47
  image: buildpack-deps:latest
48
49
50
51
52
53
54
55
  script:
    - make
  artifacts:
    paths:
      - build/asdf.lisp

Build docs:
  stage: build
56
  image: buildpack-deps:buster
57
58
  script:
    - apt-get update
59
    - apt-get install -y --no-install-recommends texinfo texlive
60
61
62
63
64
65
66
67
68
    - make -C doc
  artifacts:
    paths:
      - doc/asdf.html
      - doc/asdf.info
      - doc/asdf.pdf

Build asdf-tools:
  stage: build
69
  image: $SBCL_IMAGE:$SBCL_TAG
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
  script:
    - make -f Makefile-lisp-scripting build-asdf-tools
  artifacts:
    paths:
      - build/asdf-tools
  rules:
    - if: $ENABLE_ASDF_TOOLS

###############################################################################
# Testing Templates
###############################################################################

.Regression tests:
  stage: regression
  script:
    - make
    - make test
  artifacts:
    paths:
      - build/results/$l-test.text
  needs: []

.Upgrade tests:
  stage: upgrade
  script:
    - make
    - make test-upgrade
  artifacts:
    paths:
      - build/results/$l-upgrade.text
  needs: []
  allow_failure: true
102
103
  rules:
    - if: $RUN_UPGRADE_TESTS
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

.Scripting regression tests:
  extends: .Regression tests
  before_script:
    - ln -s Makefile-lisp-scripting GNUmakefile
  needs:
    - Build asdf-tools
  rules:
    - if: $ENABLE_ASDF_TOOLS

.Scripting upgrade tests:
  extends: .Upgrade tests
  before_script:
    - ln -s Makefile-lisp-scripting GNUmakefile
  needs:
    - Build asdf-tools
  rules:
121
    - if: $ENABLE_ASDF_TOOLS && $RUN_UPGRADE_TESTS
122
123
124
125
126
127
128

###############################################################################
# Actual test jobs - Makefile based harness
###############################################################################

ABCL regression tests:
  extends: .Regression tests
129
  image: $ABCL_IMAGE:$ABCL_TAG
130
131
  variables:
    l: abcl
Eric Timmons's avatar
Eric Timmons committed
132
133
134
135
136
137
138
139
140
  allow_failure: true

# ABCL 1.8.0 has some issues that cause ASDF tests to fail. Remove this job
# when the above job starts to pass again.
ABCL 1.7.1 regression tests:
  extends: .Regression tests
  image: $ABCL_IMAGE:1.7.1-jdk8
  variables:
    l: abcl
141
142
143

ABCL upgrade tests:
  extends: .Upgrade tests
144
  image: $ABCL_IMAGE:$ABCL_TAG
145
146
147
148
149
  variables:
    l: abcl

CCL regression tests:
  extends: .Regression tests
150
  image: $CCL_IMAGE:$CCL_TAG
151
152
153
154
155
  variables:
    l: ccl

CCL upgrade tests:
  extends: .Upgrade tests
156
  image: $CCL_IMAGE:$CCL_TAG
157
158
159
  variables:
    l: ccl

Eric Timmons's avatar
Eric Timmons committed
160
161
162
163
164
165
166
167
168
169
170
171
Clasp regression tests:
  extends: .Regression tests
  image: $CLASP_IMAGE:$CLASP_TAG
  variables:
    l: clasp

Clasp upgrade tests:
  extends: .Upgrade tests
  image: $CLASP_IMAGE:$CLASP_TAG
  variables:
    l: clasp

Eric Timmons's avatar
Eric Timmons committed
172
173
174
175
176
177
178
179
180
181
182
183
CLISP regression tests:
  extends: .Regression tests
  image: $CLISP_IMAGE:$CLISP_TAG
  variables:
    l: clisp

CLISP upgrade tests:
  extends: .Upgrade tests
  image: $CLISP_IMAGE:$CLISP_TAG
  variables:
    l: clisp

Eric Timmons's avatar
Eric Timmons committed
184
185
186
187
188
189
190
191
192
193
194
195
CMUCL regression tests:
  extends: .Regression tests
  image: $CMUCL_IMAGE:$CMUCL_TAG
  variables:
    l: cmucl

CMUCL upgrade tests:
  extends: .Upgrade tests
  image: $CMUCL_IMAGE:$CMUCL_TAG
  variables:
    l: cmucl

196
197
ECL regression tests:
  extends: .Regression tests
198
  image: $ECL_IMAGE:$ECL_TAG
199
200
201
202
203
  variables:
    l: ecl

ECL upgrade tests:
  extends: .Upgrade tests
204
  image: $ECL_IMAGE:$ECL_TAG
205
206
207
208
209
  variables:
    l: ecl

SBCL regression tests:
  extends: .Regression tests
210
  image: $SBCL_IMAGE:$SBCL_TAG
211
212
213
214
215
  variables:
    l: sbcl

SBCL upgrade tests:
  extends: .Upgrade tests
216
  image: $SBCL_IMAGE:$SBCL_TAG
217
218
219
220
221
222
223
224
225
226
  variables:
    l: sbcl


###############################################################################
# Actual test jobs - lisp scripting based harness
###############################################################################

ABCL scripting regression tests:
  extends: .Scripting regression tests
227
  image: $ABCL_IMAGE:$ABCL_TAG
228
229
230
231
232
  variables:
    l: abcl

ABCL scripting upgrade tests:
  extends: .Scripting upgrade tests
233
  image: $ABCL_IMAGE:$ABCL_TAG
234
235
236
237
238
  variables:
    l: abcl

CCL scripting regression tests:
  extends: .Scripting regression tests
239
  image: $CCL_IMAGE:$CCL_TAG
240
241
242
243
244
  variables:
    l: ccl

CCL scripting upgrade tests:
  extends: .Scripting upgrade tests
245
  image: $CCL_IMAGE:$CCL_TAG
246
247
248
  variables:
    l: ccl

Eric Timmons's avatar
Eric Timmons committed
249
250
251
252
253
254
255
256
257
258
259
260
Clasp scripting regression tests:
  extends: .Scripting regression tests
  image: $CLASP_IMAGE:$CLASP_TAG
  variables:
    l: clasp

Clasp scripting upgrade tests:
  extends: .Scripting upgrade tests
  image: $CLASP_IMAGE:$CLASP_TAG
  variables:
    l: clasp

Eric Timmons's avatar
Eric Timmons committed
261
262
263
264
265
266
267
268
269
270
271
272
CLISP scripting regression tests:
  extends: .Scripting regression tests
  image: $CLISP_IMAGE:$CLISP_TAG
  variables:
    l: clisp

CLISP scripting upgrade tests:
  extends: .Scripting upgrade tests
  image: $CLISP_IMAGE:$CLISP_TAG
  variables:
    l: clisp

Eric Timmons's avatar
Eric Timmons committed
273
274
275
276
277
278
279
280
281
282
283
284
CMUCL scripting regression tests:
  extends: .Scripting regression tests
  image: $CMUCL_IMAGE:$CMUCL_TAG
  variables:
    l: cmucl

CMUCL scripting upgrade tests:
  extends: .Scripting upgrade tests
  image: $CMUCL_IMAGE:$CMUCL_TAG
  variables:
    l: cmucl

285
286
ECL scripting regression tests:
  extends: .Scripting regression tests
287
  image: $ECL_IMAGE:$ECL_TAG
288
289
290
291
292
  variables:
    l: ecl

ECL scripting upgrade tests:
  extends: .Scripting upgrade tests
293
  image: $ECL_IMAGE:$ECL_TAG
294
295
296
297
298
  variables:
    l: ecl

SBCL scripting regression tests:
  extends: .Scripting regression tests
299
  image: $SBCL_IMAGE:$SBCL_TAG
300
301
302
303
304
  variables:
    l: sbcl

SBCL scripting upgrade tests:
  extends: .Scripting upgrade tests
305
  image: $SBCL_IMAGE:$SBCL_TAG
306
307
  variables:
    l: sbcl