|
1
|
+# You can override the included template(s) by including variable overrides
|
|
2
|
+# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
|
3
|
+# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
|
4
|
+# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
|
5
|
+# Note that environment variables can be set in several places
|
|
6
|
+# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
1
|
7
|
variables:
|
2
|
|
- download_url: "https://common-lisp.net/project/cmucl/downloads/snapshots/2021/07"
|
3
|
|
- version: "2021-07-x86"
|
4
|
|
- bootstrap: ""
|
5
|
|
-
|
|
8
|
+ download_url: https://common-lisp.net/project/cmucl/downloads/snapshots/2021/07
|
|
9
|
+ version: 2021-07-x86
|
|
10
|
+ bootstrap: ''
|
6
|
11
|
stages:
|
7
|
|
- - install
|
8
|
|
- - build
|
9
|
|
- - test
|
10
|
|
- - ansi-test
|
11
|
|
- - benchmark
|
12
|
|
-
|
13
|
|
-cache:
|
14
|
|
-
|
15
|
|
-
|
|
12
|
+- install
|
|
13
|
+- build
|
|
14
|
+- test
|
|
15
|
+- ansi-test
|
|
16
|
+- benchmark
|
|
17
|
+cache:
|
16
|
18
|
linux:install:
|
17
|
19
|
stage: install
|
18
|
20
|
tags:
|
19
|
|
- - linux
|
|
21
|
+ - linux
|
20
|
22
|
artifacts:
|
21
|
23
|
paths:
|
22
|
|
- - snapshot/
|
|
24
|
+ - snapshot/
|
23
|
25
|
script:
|
24
|
|
- - wget -nv $download_url/cmucl-$version-linux.tar.bz2
|
25
|
|
- - wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
|
26
|
|
- - mkdir snapshot
|
27
|
|
- - (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
|
28
|
|
-
|
|
26
|
+ - wget -nv $download_url/cmucl-$version-linux.tar.bz2
|
|
27
|
+ - wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
|
|
28
|
+ - mkdir snapshot
|
|
29
|
+ - "(cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)"
|
29
|
30
|
linux:build:
|
30
|
31
|
stage: build
|
31
|
32
|
tags:
|
32
|
|
- - linux
|
|
33
|
+ - linux
|
33
|
34
|
artifacts:
|
34
|
35
|
paths:
|
35
|
|
- - dist/
|
36
|
|
- - linux-2/*.log
|
37
|
|
- - linux-3/*.log
|
38
|
|
- - linux-4/*.log
|
|
36
|
+ - dist/
|
|
37
|
+ - linux-2/*.log
|
|
38
|
+ - linux-3/*.log
|
|
39
|
+ - linux-4/*.log
|
39
|
40
|
needs:
|
40
|
|
- - job: linux:install
|
41
|
|
- artifacts: true
|
|
41
|
+ - job: linux:install
|
|
42
|
+ artifacts: true
|
42
|
43
|
script:
|
43
|
|
- # Do cross compile first
|
44
|
|
- #- bin/create-target.sh xtarget x86_linux_clang
|
45
|
|
- #- bin/create-target.sh xcross x86_linux_clang
|
46
|
|
- #- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
|
47
|
|
- # Regular build using the cross-compiled result or snapshot
|
48
|
|
- - bin/build.sh $bootstrap -R -C "x86_linux_clang" -o snapshot/bin/lisp
|
49
|
|
- - bin/make-dist.sh -I dist linux-4
|
50
|
|
-
|
|
44
|
+ - bin/build.sh $bootstrap -R -C "x86_linux_clang" -o snapshot/bin/lisp
|
|
45
|
+ - bin/make-dist.sh -I dist linux-4
|
51
|
46
|
linux:test:
|
52
|
47
|
stage: test
|
53
|
48
|
tags:
|
54
|
|
- - linux
|
|
49
|
+ - linux
|
55
|
50
|
artifacts:
|
56
|
51
|
paths:
|
57
|
|
- - ansi-test/test.out
|
58
|
|
- - test.log
|
|
52
|
+ - ansi-test/test.out
|
|
53
|
+ - test.log
|
59
|
54
|
needs:
|
60
|
|
- # Needs artifacts from build (dist/)
|
61
|
|
- - job: linux:build
|
62
|
|
- artifacts: true
|
|
55
|
+ - job: linux:build
|
|
56
|
+ artifacts: true
|
63
|
57
|
script:
|
64
|
|
- - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
|
65
|
|
-
|
|
58
|
+ - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
|
66
|
59
|
linux:ansi-test:
|
67
|
60
|
stage: ansi-test
|
68
|
61
|
tags:
|
69
|
|
- - linux
|
|
62
|
+ - linux
|
70
|
63
|
artifacts:
|
71
|
64
|
paths:
|
72
|
|
- - ansi-test/test.out
|
|
65
|
+ - ansi-test/test.out
|
73
|
66
|
needs:
|
74
|
|
- # Needs artifacts from build (dist/)
|
75
|
|
- - job: linux:build
|
76
|
|
- artifacts: true
|
|
67
|
+ - job: linux:build
|
|
68
|
+ artifacts: true
|
77
|
69
|
before_script:
|
78
|
|
- - git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git
|
79
|
|
- - (cd ansi-test; git checkout rtoy-cmucl-expected-failures)
|
|
70
|
+ - git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git
|
|
71
|
+ - "(cd ansi-test; git checkout rtoy-cmucl-expected-failures)"
|
80
|
72
|
script:
|
81
|
|
- - cd ansi-test
|
82
|
|
- - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
|
83
|
|
- - grep 'No unexpected \(successes\|failures\)' test.out
|
84
|
|
-
|
|
73
|
+ - cd ansi-test
|
|
74
|
+ - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
|
|
75
|
+ - grep 'No unexpected \(successes\|failures\)' test.out
|
85
|
76
|
linux:benchmark:
|
86
|
77
|
stage: benchmark
|
87
|
78
|
tags:
|
88
|
|
- - linux
|
|
79
|
+ - linux
|
89
|
80
|
artifacts:
|
90
|
81
|
paths:
|
91
|
|
- - benchmarks/cl-bench/results
|
|
82
|
+ - benchmarks/cl-bench/results
|
92
|
83
|
needs:
|
93
|
|
- # Needs artifacts from install (snapshot/) and build (dist/)
|
94
|
|
- - job: linux:install
|
95
|
|
- artifacts: true
|
96
|
|
- - job: linux:build
|
|
84
|
+ - job: linux:install
|
|
85
|
+ artifacts: true
|
|
86
|
+ - job: linux:build
|
97
|
87
|
script:
|
98
|
|
- - cd benchmarks/cl-bench
|
99
|
|
- - mkdir tmp
|
100
|
|
- - CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
|
101
|
|
- - CMUCL=../../dist/bin/lisp ./run-cmucl.sh
|
102
|
|
- - ../../snapshot/bin/lisp -load report
|
103
|
|
-
|
|
88
|
+ - cd benchmarks/cl-bench
|
|
89
|
+ - mkdir tmp
|
|
90
|
+ - CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
|
|
91
|
+ - CMUCL=../../dist/bin/lisp ./run-cmucl.sh
|
|
92
|
+ - "../../snapshot/bin/lisp -load report"
|
104
|
93
|
osx:install:
|
105
|
94
|
stage: install
|
106
|
95
|
tags:
|
107
|
|
- - osx
|
|
96
|
+ - osx
|
108
|
97
|
artifacts:
|
109
|
98
|
paths:
|
110
|
|
- - snapshot/
|
|
99
|
+ - snapshot/
|
111
|
100
|
script:
|
112
|
|
- - /opt/local/bin/curl -o cmucl-$version-darwin.tar.bz2 $download_url/cmucl-$version-darwin.tar.bz2
|
113
|
|
- - mkdir snapshot
|
114
|
|
- - (cd snapshot; tar xjf ../cmucl-$version-darwin.tar.bz2)
|
115
|
|
-
|
|
101
|
+ - "/opt/local/bin/curl -o cmucl-$version-darwin.tar.bz2 $download_url/cmucl-$version-darwin.tar.bz2"
|
|
102
|
+ - mkdir snapshot
|
|
103
|
+ - "(cd snapshot; tar xjf ../cmucl-$version-darwin.tar.bz2)"
|
116
|
104
|
osx:build:
|
117
|
105
|
stage: build
|
118
|
106
|
tags:
|
119
|
|
- - osx
|
|
107
|
+ - osx
|
120
|
108
|
artifacts:
|
121
|
109
|
paths:
|
122
|
|
- - dist/
|
123
|
|
- - darwin-2/*.log
|
124
|
|
- - darwin-3/*.log
|
125
|
|
- - darwin-4/*.log
|
|
110
|
+ - dist/
|
|
111
|
+ - darwin-2/*.log
|
|
112
|
+ - darwin-3/*.log
|
|
113
|
+ - darwin-4/*.log
|
126
|
114
|
needs:
|
127
|
|
- - job: osx:install
|
128
|
|
- artifacts: true
|
|
115
|
+ - job: osx:install
|
|
116
|
+ artifacts: true
|
129
|
117
|
script:
|
130
|
|
- # Do cross compile first
|
131
|
|
- #- bin/create-target.sh xtarget x86_darwin
|
132
|
|
- #- bin/create-target.sh xcross x86_darwin
|
133
|
|
- #- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
|
134
|
|
- # Regular build using the cross-compiled result or snapshot
|
135
|
|
- - bin/build.sh $bootstrap -R -C "" -o snapshot/bin/lisp
|
136
|
|
- - bin/make-dist.sh -I dist darwin-4
|
137
|
|
-
|
|
118
|
+ - bin/build.sh $bootstrap -R -C "" -o snapshot/bin/lisp
|
|
119
|
+ - bin/make-dist.sh -I dist darwin-4
|
138
|
120
|
osx:test:
|
139
|
121
|
stage: test
|
140
|
122
|
tags:
|
141
|
|
- - osx
|
|
123
|
+ - osx
|
142
|
124
|
artifacts:
|
143
|
125
|
paths:
|
144
|
|
- - test.log
|
|
126
|
+ - test.log
|
145
|
127
|
needs:
|
146
|
|
- # Needs artifacts from build (dist/)
|
147
|
|
- - job: osx:build
|
148
|
|
- artifacts: true
|
|
128
|
+ - job: osx:build
|
|
129
|
+ artifacts: true
|
149
|
130
|
script:
|
150
|
|
- - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
|
151
|
|
-
|
|
131
|
+ - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
|
152
|
132
|
osx:ansi-test:
|
153
|
133
|
stage: ansi-test
|
154
|
134
|
tags:
|
155
|
|
- - osx
|
|
135
|
+ - osx
|
156
|
136
|
artifacts:
|
157
|
137
|
paths:
|
158
|
|
- - ansi-test/test.out
|
|
138
|
+ - ansi-test/test.out
|
159
|
139
|
needs:
|
160
|
|
- # Needs artifacts from build (dist/)
|
161
|
|
- - job: osx:build
|
162
|
|
- artifacts: true
|
|
140
|
+ - job: osx:build
|
|
141
|
+ artifacts: true
|
163
|
142
|
before_script:
|
164
|
|
- - /opt/local/bin/git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git
|
165
|
|
- - (cd ansi-test; /opt/local/bin/git checkout rtoy-cmucl-expected-failures)
|
|
143
|
+ - "/opt/local/bin/git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git"
|
|
144
|
+ - "(cd ansi-test; /opt/local/bin/git checkout rtoy-cmucl-expected-failures)"
|
166
|
145
|
script:
|
167
|
|
- - cd ansi-test
|
168
|
|
- - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
|
169
|
|
- - grep 'No unexpected \(successes\|failures\)' test.out
|
170
|
|
-
|
|
146
|
+ - cd ansi-test
|
|
147
|
+ - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
|
|
148
|
+ - grep 'No unexpected \(successes\|failures\)' test.out
|
171
|
149
|
osx:benchmark:
|
172
|
150
|
stage: benchmark
|
173
|
151
|
tags:
|
174
|
|
- - osx
|
|
152
|
+ - osx
|
175
|
153
|
artifacts:
|
176
|
154
|
paths:
|
177
|
|
- - benchmarks/cl-bench/results
|
|
155
|
+ - benchmarks/cl-bench/results
|
178
|
156
|
needs:
|
179
|
|
- # Needs artifacts from install (snapshot/) and build (dist/)
|
180
|
|
- - job: osx:install
|
181
|
|
- artifacts: true
|
182
|
|
- - job: osx:build
|
|
157
|
+ - job: osx:install
|
|
158
|
+ artifacts: true
|
|
159
|
+ - job: osx:build
|
183
|
160
|
script:
|
184
|
|
- - cd benchmarks/cl-bench
|
185
|
|
- - mkdir tmp
|
186
|
|
- - CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
|
187
|
|
- - CMUCL=../../dist/bin/lisp ./run-cmucl.sh
|
188
|
|
- - ../../snapshot/bin/lisp -load report |
|
161
|
+ - cd benchmarks/cl-bench
|
|
162
|
+ - mkdir tmp
|
|
163
|
+ - CMUCL=../../snapshot/bin/lisp ./run-cmucl.sh
|
|
164
|
+ - CMUCL=../../dist/bin/lisp ./run-cmucl.sh
|
|
165
|
+ - "../../snapshot/bin/lisp -load report"
|
|
166
|
+include:
|
|
167
|
+- template: Security/Secret-Detection.gitlab-ci.yml |