... |
... |
@@ -10,6 +10,16 @@ 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
|
+
|
13
|
23
|
#####################################################
|
14
|
24
|
# Prepare stage #
|
15
|
25
|
#####################################################
|
... |
... |
@@ -91,20 +101,26 @@ source_dist: |
91
|
101
|
tests-debian-9:
|
92
|
102
|
image: buildstream/testsuite-debian:9-master-114-4cab18e3
|
93
|
103
|
<<: *linux-tests
|
|
104
|
+ <<: *tests-condition
|
94
|
105
|
|
95
|
106
|
tests-fedora-27:
|
96
|
107
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
97
|
108
|
<<: *linux-tests
|
|
109
|
+ <<: *tests-condition
|
98
|
110
|
|
99
|
111
|
tests-fedora-28:
|
100
|
112
|
image: buildstream/testsuite-fedora:28-master-114-4cab18e3
|
101
|
113
|
<<: *linux-tests
|
|
114
|
+ <<: *tests-condition
|
102
|
115
|
|
103
|
116
|
tests-ubuntu-18.04:
|
104
|
117
|
image: buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
|
105
|
118
|
<<: *linux-tests
|
|
119
|
+ <<: *tests-condition
|
106
|
120
|
|
107
|
121
|
tests-unix:
|
|
122
|
+ <<: *tests-condition
|
|
123
|
+
|
108
|
124
|
# Use fedora here, to a) run a test on fedora and b) ensure that we
|
109
|
125
|
# can get rid of ostree - this is not possible with debian-8
|
110
|
126
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
... |
... |
@@ -143,6 +159,15 @@ tests-unix: |
143
|
159
|
# Note: We still do not enforce a consistent installation of python3-sphinx,
|
144
|
160
|
# as it will significantly grow the backing image.
|
145
|
161
|
docs:
|
|
162
|
+
|
|
163
|
+ # Here we build the docs for every pre-merge CI, but avoid
|
|
164
|
+ # the job on post-merge to stable branches, because we only
|
|
165
|
+ # ever publish them from master
|
|
166
|
+ only:
|
|
167
|
+ - branches
|
|
168
|
+ except:
|
|
169
|
+ - /bst-1\..*/
|
|
170
|
+
|
146
|
171
|
stage: test
|
147
|
172
|
script:
|
148
|
173
|
- export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
|
... |
... |
@@ -167,6 +192,8 @@ docs: |
167
|
192
|
# as an output of radon, with some conversion
|
168
|
193
|
#
|
169
|
194
|
codequality:
|
|
195
|
+ <<: *tests-condition
|
|
196
|
+
|
170
|
197
|
image: docker:stable
|
171
|
198
|
stage: post
|
172
|
199
|
variables:
|
... |
... |
@@ -185,6 +212,8 @@ codequality: |
185
|
212
|
paths: [codeclimate.json]
|
186
|
213
|
|
187
|
214
|
analysis:
|
|
215
|
+ <<: *tests-condition
|
|
216
|
+
|
188
|
217
|
stage: post
|
189
|
218
|
script:
|
190
|
219
|
- |
|
... |
... |
@@ -213,6 +242,8 @@ analysis: |
213
|
242
|
# Collate coverage reports
|
214
|
243
|
#
|
215
|
244
|
coverage:
|
|
245
|
+ <<: *tests-condition
|
|
246
|
+
|
216
|
247
|
stage: post
|
217
|
248
|
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
218
|
249
|
script:
|