... |
... |
@@ -74,6 +74,8 @@ source_dist: |
74
|
74
|
- cd ../..
|
75
|
75
|
- mkdir -p coverage-linux/
|
76
|
76
|
- cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}"
|
|
77
|
+ except:
|
|
78
|
+ - schedules
|
77
|
79
|
artifacts:
|
78
|
80
|
paths:
|
79
|
81
|
- coverage-linux/
|
... |
... |
@@ -115,6 +117,8 @@ tests-unix: |
115
|
117
|
- cd ../..
|
116
|
118
|
- mkdir -p coverage-unix/
|
117
|
119
|
- cp dist/buildstream/.coverage.* coverage-unix/coverage.unix
|
|
120
|
+ except:
|
|
121
|
+ - schedules
|
118
|
122
|
artifacts:
|
119
|
123
|
paths:
|
120
|
124
|
- coverage-unix/
|
... |
... |
@@ -136,10 +140,44 @@ docs: |
136
|
140
|
- make BST_FORCE_SESSION_REBUILD=1 -C doc
|
137
|
141
|
- cd ../..
|
138
|
142
|
- mv dist/buildstream/doc/build/html public
|
|
143
|
+ except:
|
|
144
|
+ - schedules
|
139
|
145
|
artifacts:
|
140
|
146
|
paths:
|
141
|
147
|
- public/
|
142
|
148
|
|
|
149
|
+.system-tests: &system-tests-template
|
|
150
|
+ stage: test
|
|
151
|
+ variables:
|
|
152
|
+ XDG_CACHE_HOME: /cache
|
|
153
|
+ bst_ext_url: git+https://gitlab.com/BuildStream/bst-external.git
|
|
154
|
+ bst_ext_ref: 31376f750df713b3613d5348f93100c7e0ef68c0 # 0.3
|
|
155
|
+ fd_sdk_ref: ac4d5c64800cc38d5067c4d4223785d1d4993873 # 18.08
|
|
156
|
+ expected_cache_key: faaf3d3
|
|
157
|
+ before_script:
|
|
158
|
+ - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
|
|
159
|
+ - pip3 install --user -e ${bst_ext_url}@${bst_ext_ref}#egg=bst_ext
|
|
160
|
+ - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
|
|
161
|
+ - git -C freedesktop-sdk checkout ${fd_sdk_ref}
|
|
162
|
+ #when:
|
|
163
|
+ #- schedules
|
|
164
|
+
|
|
165
|
+system-tests:
|
|
166
|
+ <<: *system-tests-template
|
|
167
|
+ script:
|
|
168
|
+ - make -C freedesktop-sdk
|
|
169
|
+ - cache_key=$(bst -C freedesktop-sdk show all.bst --deps none --format %{key})
|
|
170
|
+ - test ${cache_key} == ${expected_cache_key}
|
|
171
|
+
|
|
172
|
+system-tests-no-cache:
|
|
173
|
+ <<: *system-tests-template
|
|
174
|
+ script:
|
|
175
|
+ - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf
|
|
176
|
+ - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf
|
|
177
|
+ - make -C freedesktop-sdk
|
|
178
|
+ - cache_key=$(bst -C freedesktop-sdk show all.bst --deps none --format %{key})
|
|
179
|
+ - test ${cache_key} == ${expected_cache_key}
|
|
180
|
+
|
143
|
181
|
|
144
|
182
|
#####################################################
|
145
|
183
|
# Post stage #
|
... |
... |
@@ -164,6 +202,8 @@ codequality: |
164
|
202
|
--volume "$PWD":/code
|
165
|
203
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
166
|
204
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
|
205
|
+ except:
|
|
206
|
+ - schedules
|
167
|
207
|
artifacts:
|
168
|
208
|
paths: [codeclimate.json]
|
169
|
209
|
|
... |
... |
@@ -189,6 +229,8 @@ analysis: |
189
|
229
|
radon raw -s -j buildstream > analysis/raw.json
|
190
|
230
|
radon raw -s buildstream
|
191
|
231
|
|
|
232
|
+ except:
|
|
233
|
+ - schedules
|
192
|
234
|
artifacts:
|
193
|
235
|
paths:
|
194
|
236
|
- analysis/
|
... |
... |
@@ -213,6 +255,8 @@ coverage: |
213
|
255
|
- tests-fedora-27
|
214
|
256
|
- tests-unix
|
215
|
257
|
- source_dist
|
|
258
|
+ except:
|
|
259
|
+ - schedules
|
216
|
260
|
|
217
|
261
|
# Deploy, only for merges which land on master branch.
|
218
|
262
|
#
|
... |
... |
@@ -237,3 +281,5 @@ pages: |
237
|
281
|
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141
|
238
|
282
|
#
|
239
|
283
|
- master
|
|
284
|
+ except:
|
|
285
|
+ - schedules
|