... |
... |
@@ -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
|
#####################################################
|
... |
... |
@@ -81,20 +91,26 @@ source_dist: |
81
|
91
|
tests-debian-9:
|
82
|
92
|
image: buildstream/testsuite-debian:9-master-114-4cab18e3
|
83
|
93
|
<<: *linux-tests
|
|
94
|
+ <<: *tests-condition
|
84
|
95
|
|
85
|
96
|
tests-fedora-27:
|
86
|
97
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
87
|
98
|
<<: *linux-tests
|
|
99
|
+ <<: *tests-condition
|
88
|
100
|
|
89
|
101
|
tests-fedora-28:
|
90
|
102
|
image: buildstream/testsuite-fedora:28-master-114-4cab18e3
|
91
|
103
|
<<: *linux-tests
|
|
104
|
+ <<: *tests-condition
|
92
|
105
|
|
93
|
106
|
tests-ubuntu-18.04:
|
94
|
107
|
image: buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
|
95
|
108
|
<<: *linux-tests
|
|
109
|
+ <<: *tests-condition
|
96
|
110
|
|
97
|
111
|
tests-unix:
|
|
112
|
+ <<: *tests-condition
|
|
113
|
+
|
98
|
114
|
# Use fedora here, to a) run a test on fedora and b) ensure that we
|
99
|
115
|
# can get rid of ostree - this is not possible with debian-8
|
100
|
116
|
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
|
... |
... |
@@ -133,6 +149,15 @@ tests-unix: |
133
|
149
|
# Note: We still do not enforce a consistent installation of python3-sphinx,
|
134
|
150
|
# as it will significantly grow the backing image.
|
135
|
151
|
docs:
|
|
152
|
+
|
|
153
|
+ # Here we build the docs for every pre-merge CI, but avoid
|
|
154
|
+ # the job on post-merge to stable branches, because we only
|
|
155
|
+ # ever publish them from master
|
|
156
|
+ only:
|
|
157
|
+ - branches
|
|
158
|
+ except:
|
|
159
|
+ - /bst-1\..*/
|
|
160
|
+
|
136
|
161
|
stage: test
|
137
|
162
|
script:
|
138
|
163
|
- export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
|
... |
... |
@@ -157,6 +182,8 @@ docs: |
157
|
182
|
# as an output of radon, with some conversion
|
158
|
183
|
#
|
159
|
184
|
codequality:
|
|
185
|
+ <<: *tests-condition
|
|
186
|
+
|
160
|
187
|
image: docker:stable
|
161
|
188
|
stage: post
|
162
|
189
|
variables:
|
... |
... |
@@ -175,6 +202,8 @@ codequality: |
175
|
202
|
paths: [codeclimate.json]
|
176
|
203
|
|
177
|
204
|
analysis:
|
|
205
|
+ <<: *tests-condition
|
|
206
|
+
|
178
|
207
|
stage: post
|
179
|
208
|
script:
|
180
|
209
|
- |
|
... |
... |
@@ -203,6 +232,8 @@ analysis: |
203
|
232
|
# Collate coverage reports
|
204
|
233
|
#
|
205
|
234
|
coverage:
|
|
235
|
+ <<: *tests-condition
|
|
236
|
+
|
206
|
237
|
stage: post
|
207
|
238
|
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
208
|
239
|
script:
|