... |
... |
@@ -10,16 +10,6 @@ stages: |
10
|
10
|
- test
|
11
|
11
|
- post
|
12
|
12
|
|
13
|
|
-# Avoid running all the tests post merge on
|
14
|
|
-# master or on any release branch.
|
15
|
|
-#
|
16
|
|
-.tests-condition-template: &tests-condition
|
17
|
|
- only:
|
18
|
|
- - branches
|
19
|
|
- except:
|
20
|
|
- - master
|
21
|
|
- - /bst-1\..*/
|
22
|
|
-
|
23
|
13
|
#####################################################
|
24
|
14
|
# Prepare stage #
|
25
|
15
|
#####################################################
|
... |
... |
@@ -96,26 +86,20 @@ source_dist: |
96
|
86
|
tests-debian-9:
|
97
|
87
|
image: buildstream/testsuite-debian:9-master-114-4cab18e3
|
98
|
88
|
<<: *linux-tests
|
99
|
|
- <<: *tests-condition
|
100
|
89
|
|
101
|
90
|
tests-fedora-27:
|
102
|
91
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
103
|
92
|
<<: *linux-tests
|
104
|
|
- <<: *tests-condition
|
105
|
93
|
|
106
|
94
|
tests-fedora-28:
|
107
|
95
|
image: buildstream/testsuite-fedora:28-master-114-4cab18e3
|
108
|
96
|
<<: *linux-tests
|
109
|
|
- <<: *tests-condition
|
110
|
97
|
|
111
|
98
|
tests-ubuntu-18.04:
|
112
|
99
|
image: buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
|
113
|
100
|
<<: *linux-tests
|
114
|
|
- <<: *tests-condition
|
115
|
101
|
|
116
|
102
|
tests-unix:
|
117
|
|
- <<: *tests-condition
|
118
|
|
-
|
119
|
103
|
# Use fedora here, to a) run a test on fedora and b) ensure that we
|
120
|
104
|
# can get rid of ostree - this is not possible with debian-8
|
121
|
105
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
... |
... |
@@ -154,15 +138,6 @@ tests-unix: |
154
|
138
|
# Note: We still do not enforce a consistent installation of python3-sphinx,
|
155
|
139
|
# as it will significantly grow the backing image.
|
156
|
140
|
docs:
|
157
|
|
-
|
158
|
|
- # Here we build the docs for every pre-merge CI, but avoid
|
159
|
|
- # the job on post-merge to stable branches, because we only
|
160
|
|
- # ever publish them from master
|
161
|
|
- only:
|
162
|
|
- - branches
|
163
|
|
- except:
|
164
|
|
- - /bst-1\..*/
|
165
|
|
-
|
166
|
141
|
stage: test
|
167
|
142
|
script:
|
168
|
143
|
- export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
|
... |
... |
@@ -178,17 +153,11 @@ docs: |
178
|
153
|
- public/
|
179
|
154
|
|
180
|
155
|
|
181
|
|
-#####################################################
|
182
|
|
-# Post stage #
|
183
|
|
-#####################################################
|
184
|
|
-
|
185
|
156
|
# Check code quality with gitlab's built-in feature.
|
186
|
157
|
#
|
187
|
158
|
code_quality:
|
188
|
|
- <<: *tests-condition
|
189
|
|
-
|
190
|
159
|
image: docker:stable
|
191
|
|
- stage: post
|
|
160
|
+ stage: test
|
192
|
161
|
variables:
|
193
|
162
|
DOCKER_DRIVER: overlay2
|
194
|
163
|
allow_failure: true
|
... |
... |
@@ -204,9 +173,11 @@ code_quality: |
204
|
173
|
artifacts:
|
205
|
174
|
paths: [gl-code-quality-report.json]
|
206
|
175
|
|
207
|
|
-analysis:
|
208
|
|
- <<: *tests-condition
|
|
176
|
+#####################################################
|
|
177
|
+# Post stage #
|
|
178
|
+#####################################################
|
209
|
179
|
|
|
180
|
+analysis:
|
210
|
181
|
stage: post
|
211
|
182
|
script:
|
212
|
183
|
- |
|
... |
... |
@@ -235,8 +206,6 @@ analysis: |
235
|
206
|
# Collate coverage reports
|
236
|
207
|
#
|
237
|
208
|
coverage:
|
238
|
|
- <<: *tests-condition
|
239
|
|
-
|
240
|
209
|
stage: post
|
241
|
210
|
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
242
|
211
|
script:
|