finnball pushed to branch master at BuildGrid / buildgrid
Commits:
-
38c6b455
by finn at 2018-07-27T09:19:31Z
1 changed file:
Changes:
... | ... | @@ -11,12 +11,11 @@ before_script: |
11 | 11 |
- export PATH=~/.local/bin:${PATH}
|
12 | 12 |
- pip3 install --user -e .
|
13 | 13 |
|
14 |
-tests-fedora:
|
|
14 |
+.tests-template: &linux-tests
|
|
15 | 15 |
stage: test
|
16 | 16 |
variables:
|
17 | 17 |
PYTEST_ADDOPTS: "--color=yes"
|
18 | 18 |
script:
|
19 |
- - yum -y install clang libffi-devel openssl-devel python3-devel
|
|
20 | 19 |
- python3 setup.py test
|
21 | 20 |
- mkdir -p coverage/
|
22 | 21 |
- cp .coverage.* coverage/coverage."${CI_JOB_NAME}"
|
... | ... | @@ -24,8 +23,7 @@ tests-fedora: |
24 | 23 |
paths:
|
25 | 24 |
- coverage/
|
26 | 25 |
|
27 |
- |
|
28 |
-tests-dummy-job-fedora:
|
|
26 |
+.run-dummy-job-template: &dummy-job
|
|
29 | 27 |
stage: test
|
30 | 28 |
script:
|
31 | 29 |
- ${BGD} server start &
|
... | ... | @@ -33,6 +31,26 @@ tests-dummy-job-fedora: |
33 | 31 |
- ${BGD} bot --host=0.0.0.0 dummy &
|
34 | 32 |
- ${BGD} execute --host=0.0.0.0 request --wait-for-completion
|
35 | 33 |
|
34 |
+tests-debian:
|
|
35 |
+ image: buildstream/buildstream-debian
|
|
36 |
+ <<: *linux-tests
|
|
37 |
+ |
|
38 |
+# Need to yum install until we have our own image
|
|
39 |
+tests-fedora:
|
|
40 |
+ <<: *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 |
+ |
|
47 |
+run-dummy-job-debian:
|
|
48 |
+ image: buildstream/buildstream-debian
|
|
49 |
+ <<: *dummy-job
|
|
50 |
+ |
|
51 |
+run-dummy-job-fedora:
|
|
52 |
+ <<: *dummy-job
|
|
53 |
+ |
|
36 | 54 |
coverage:
|
37 | 55 |
stage: post
|
38 | 56 |
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|