James Ennis pushed to branch jennis/update_CI at BuildGrid / buildgrid
Commits:
-
306a8476
by James Ennis at 2018-07-30T08:35:10Z
-
f06cf8d5
by James Ennis at 2018-07-30T08:35:10Z
-
03924781
by James Ennis at 2018-07-30T08:35:10Z
1 changed file:
Changes:
1 |
-image: buildstream/buildstream-fedora:master-81-06ae434
|
|
1 |
+# Use a debian image with python 3.5 (and pip3) pre-installed
|
|
2 |
+image: python:3.5-stretch
|
|
2 | 3 |
|
3 | 4 |
variables:
|
4 | 5 |
BGD: bgd --verbose
|
... | ... | @@ -8,6 +9,7 @@ stages: |
8 | 9 |
- post
|
9 | 10 |
|
10 | 11 |
before_script:
|
12 |
+ - pip3 install setuptools
|
|
11 | 13 |
- export PATH=~/.local/bin:${PATH}
|
12 | 14 |
- pip3 install --user -e .
|
13 | 15 |
|
... | ... | @@ -31,30 +33,23 @@ before_script: |
31 | 33 |
- ${BGD} bot --host=0.0.0.0 dummy &
|
32 | 34 |
- ${BGD} execute --host=0.0.0.0 request --wait-for-completion
|
33 | 35 |
|
34 |
-tests-debian:
|
|
35 |
- image: buildstream/buildstream-debian
|
|
36 |
+tests-debian-stretch:
|
|
36 | 37 |
<<: *linux-tests
|
37 | 38 |
|
38 |
-# Need to yum install until we have our own image
|
|
39 |
-tests-fedora:
|
|
39 |
+tests-fedora-28:
|
|
40 |
+ image: fedora:28
|
|
40 | 41 |
<<: *linux-tests
|
41 |
- script:
|
|
42 |
- - yum -y install clang libffi-devel openssl-devel python3-devel
|
|
43 |
- - python3 setup.py test
|
|
44 |
- - mkdir -p coverage/
|
|
45 |
- - cp .coverage.* coverage/coverage."${CI_JOB_NAME}"
|
|
46 | 42 |
|
47 | 43 |
run-dummy-job-debian:
|
48 | 44 |
image: buildstream/buildstream-debian
|
49 | 45 |
<<: *dummy-job
|
50 | 46 |
|
51 |
-run-dummy-job-fedora:
|
|
52 |
- <<: *dummy-job
|
|
53 | 47 |
|
54 | 48 |
coverage:
|
55 | 49 |
stage: post
|
56 | 50 |
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
57 | 51 |
script:
|
52 |
+ - pip3 install coverage==4.4.0
|
|
58 | 53 |
- mkdir report
|
59 | 54 |
- cd report
|
60 | 55 |
- cp ../coverage/coverage.* .
|
... | ... | @@ -62,14 +57,14 @@ coverage: |
62 | 57 |
- coverage combine --rcfile=../.coveragerc -a coverage.*
|
63 | 58 |
- coverage report --rcfile=../.coveragerc -m
|
64 | 59 |
dependencies:
|
65 |
- - tests-fedora
|
|
60 |
+ - tests-debian-stretch
|
|
66 | 61 |
|
67 | 62 |
# Deploy, only for merges which land on master branch.
|
68 | 63 |
#
|
69 | 64 |
pages:
|
70 | 65 |
stage: post
|
71 | 66 |
dependencies:
|
72 |
- - tests-fedora
|
|
67 |
+ - tests-debian-stretch
|
|
73 | 68 |
script:
|
74 | 69 |
- mv coverage/ public/
|
75 | 70 |
artifacts:
|