... |
... |
@@ -79,6 +79,8 @@ source_dist: |
79
|
79
|
- cd ../..
|
80
|
80
|
- mkdir -p coverage-linux/
|
81
|
81
|
- cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}"
|
|
82
|
+ except:
|
|
83
|
+ - schedules
|
82
|
84
|
artifacts:
|
83
|
85
|
paths:
|
84
|
86
|
- coverage-linux/
|
... |
... |
@@ -127,6 +129,8 @@ tests-unix: |
127
|
129
|
- cd ../..
|
128
|
130
|
- mkdir -p coverage-unix/
|
129
|
131
|
- cp dist/buildstream/.coverage.* coverage-unix/coverage.unix
|
|
132
|
+ except:
|
|
133
|
+ - schedules
|
130
|
134
|
artifacts:
|
131
|
135
|
paths:
|
132
|
136
|
- coverage-unix/
|
... |
... |
@@ -148,10 +152,42 @@ docs: |
148
|
152
|
- make BST_FORCE_SESSION_REBUILD=1 -C doc
|
149
|
153
|
- cd ../..
|
150
|
154
|
- mv dist/buildstream/doc/build/html public
|
|
155
|
+ except:
|
|
156
|
+ - schedules
|
151
|
157
|
artifacts:
|
152
|
158
|
paths:
|
153
|
159
|
- public/
|
154
|
160
|
|
|
161
|
+.system-tests: &system-tests-template
|
|
162
|
+ stage: test
|
|
163
|
+ variables:
|
|
164
|
+ XDG_CACHE_HOME: /cache
|
|
165
|
+ bst_ext_url: git+https://gitlab.com/BuildStream/bst-external.git
|
|
166
|
+ bst_ext_ref: 1d6ab71151b93c8cbc0a91a36ffe9270f3b835f1 # 0.5.1
|
|
167
|
+ fd_sdk_ref: 718ea88089644a1ea5b488de0b90c2c565cb75f8 # 18.08.12
|
|
168
|
+ expected_cache_key: faaf3d3
|
|
169
|
+ before_script:
|
|
170
|
+ - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
|
|
171
|
+ - pip3 install --user -e ${bst_ext_url}@${bst_ext_ref}#egg=bst_ext
|
|
172
|
+ - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
|
|
173
|
+ - git -C freedesktop-sdk checkout ${fd_sdk_ref}
|
|
174
|
+ tags:
|
|
175
|
+ - system-tests
|
|
176
|
+ #when:
|
|
177
|
+ #- schedules
|
|
178
|
+
|
|
179
|
+system-tests:
|
|
180
|
+ <<: *system-tests-template
|
|
181
|
+ script:
|
|
182
|
+ - make -C freedesktop-sdk
|
|
183
|
+
|
|
184
|
+system-tests-no-cache:
|
|
185
|
+ <<: *system-tests-template
|
|
186
|
+ script:
|
|
187
|
+ - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf
|
|
188
|
+ - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf
|
|
189
|
+ - make -C freedesktop-sdk
|
|
190
|
+
|
155
|
191
|
|
156
|
192
|
# Check code quality with gitlab's built-in feature.
|
157
|
193
|
#
|
... |
... |
@@ -170,6 +206,8 @@ code_quality: |
170
|
206
|
--volume "$PWD":/code
|
171
|
207
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
172
|
208
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
|
209
|
+ except:
|
|
210
|
+ - schedules
|
173
|
211
|
artifacts:
|
174
|
212
|
paths: [gl-code-quality-report.json]
|
175
|
213
|
|
... |
... |
@@ -199,6 +237,8 @@ analysis: |
199
|
237
|
radon raw -s -j buildstream > analysis/raw.json
|
200
|
238
|
radon raw -s buildstream
|
201
|
239
|
|
|
240
|
+ except:
|
|
241
|
+ - schedules
|
202
|
242
|
artifacts:
|
203
|
243
|
paths:
|
204
|
244
|
- analysis/
|
... |
... |
@@ -224,6 +264,8 @@ coverage: |
224
|
264
|
- tests-fedora-28
|
225
|
265
|
- tests-unix
|
226
|
266
|
- source_dist
|
|
267
|
+ except:
|
|
268
|
+ - schedules
|
227
|
269
|
|
228
|
270
|
# Deploy, only for merges which land on master branch.
|
229
|
271
|
#
|
... |
... |
@@ -248,3 +290,5 @@ pages: |
248
|
290
|
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141
|
249
|
291
|
#
|
250
|
292
|
- master
|
|
293
|
+ except:
|
|
294
|
+ - schedules
|