... |
... |
@@ -6,7 +6,6 @@ cache: |
6
|
6
|
- cache/
|
7
|
7
|
|
8
|
8
|
stages:
|
9
|
|
- - prepare
|
10
|
9
|
- test
|
11
|
10
|
- post
|
12
|
11
|
|
... |
... |
@@ -15,41 +14,6 @@ variables: |
15
|
14
|
INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
|
16
|
15
|
TEST_COMMAND: "tox -- --color=yes --integration"
|
17
|
16
|
|
18
|
|
-#####################################################
|
19
|
|
-# Prepare stage #
|
20
|
|
-#####################################################
|
21
|
|
-
|
22
|
|
-# Create a source distribution
|
23
|
|
-#
|
24
|
|
-source_dist:
|
25
|
|
- stage: prepare
|
26
|
|
- script:
|
27
|
|
-
|
28
|
|
- # Generate the source distribution tarball
|
29
|
|
- #
|
30
|
|
- - python3 setup.py sdist
|
31
|
|
- - tar -ztf dist/*
|
32
|
|
- - tarball=$(cd dist && echo $(ls *))
|
33
|
|
-
|
34
|
|
- # Verify that the source distribution tarball can be installed correctly
|
35
|
|
- #
|
36
|
|
- - pip3 install dist/*.tar.gz
|
37
|
|
- - bst --version
|
38
|
|
-
|
39
|
|
- # unpack tarball as `dist/buildstream` directory
|
40
|
|
- - |
|
41
|
|
- cat > dist/unpack.sh << EOF
|
42
|
|
- #!/bin/sh
|
43
|
|
- tar -zxf ${tarball}
|
44
|
|
- mv ${tarball%.tar.gz} buildstream
|
45
|
|
- EOF
|
46
|
|
-
|
47
|
|
- # Make our helpers executable
|
48
|
|
- - chmod +x dist/unpack.sh
|
49
|
|
- artifacts:
|
50
|
|
- paths:
|
51
|
|
- - dist/
|
52
|
|
-
|
53
|
17
|
|
54
|
18
|
#####################################################
|
55
|
19
|
# Test stage #
|
... |
... |
@@ -72,8 +36,7 @@ source_dist: |
72
|
36
|
- useradd -Um buildstream
|
73
|
37
|
- chown -R buildstream:buildstream .
|
74
|
38
|
|
75
|
|
- # Run the tests from the source distribution, We run as a simple
|
76
|
|
- # user to test for permission issues
|
|
39
|
+ # Run the tests as a simple user to test for permission issues
|
77
|
40
|
- su buildstream -c "${TEST_COMMAND}"
|
78
|
41
|
|
79
|
42
|
after_script:
|
... |
... |
@@ -192,12 +155,11 @@ docs: |
192
|
155
|
scheduler:
|
193
|
156
|
fetchers: 2
|
194
|
157
|
EOF
|
195
|
|
- - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
|
|
158
|
+ - pip3 install -r requirements/requirements.txt -r requirements/plugin-requirements.txt
|
|
159
|
+ - pip3 install --no-index .
|
196
|
160
|
- pip3 install --user -e ${BST_EXT_URL}@${BST_EXT_REF}#egg=bst_ext
|
197
|
161
|
- git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
|
198
|
162
|
- git -C freedesktop-sdk checkout ${FD_SDK_REF}
|
199
|
|
- only:
|
200
|
|
- - schedules
|
201
|
163
|
|
202
|
164
|
overnight-tests:
|
203
|
165
|
<<: *overnight-tests-template
|
... |
... |
@@ -275,22 +237,19 @@ coverage: |
275
|
237
|
stage: post
|
276
|
238
|
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
277
|
239
|
script:
|
278
|
|
- - cd dist && ./unpack.sh && cd buildstream
|
279
|
|
- - pip3 install -r requirements/requirements.txt -r requirements/dev-requirements.txt
|
280
|
|
- - pip3 install --no-index .
|
|
240
|
+ - pip3 install -r requirements/dev-requirements.txt
|
281
|
241
|
- mkdir report
|
282
|
242
|
- cd report
|
283
|
|
- - cp ../../../coverage-unix/coverage.* .
|
284
|
|
- - cp ../../../coverage-linux/coverage.* .
|
|
243
|
+ - cp ../coverage-unix/coverage.* .
|
|
244
|
+ - cp ../coverage-linux/coverage.* .
|
285
|
245
|
- ls coverage.*
|
286
|
|
- - coverage combine --rcfile=../.coveragerc -a coverage.*
|
287
|
|
- - coverage report --rcfile=../.coveragerc -m
|
|
246
|
+ - coverage combine -a coverage.*
|
|
247
|
+ - coverage report -m
|
288
|
248
|
dependencies:
|
289
|
249
|
- tests-debian-9
|
290
|
250
|
- tests-fedora-27
|
291
|
251
|
- tests-fedora-28
|
292
|
252
|
- tests-unix
|
293
|
|
- - source_dist
|
294
|
253
|
except:
|
295
|
254
|
- schedules
|
296
|
255
|
|
... |
... |
@@ -299,7 +258,6 @@ coverage: |
299
|
258
|
pages:
|
300
|
259
|
stage: post
|
301
|
260
|
dependencies:
|
302
|
|
- - source_dist
|
303
|
261
|
- docs
|
304
|
262
|
variables:
|
305
|
263
|
ACME_DIR: public/.well-known/acme-challenge
|