Jonathan Maw pushed to branch 1-coverage-report-not-combined at BuildStream / bst-external
Commits:
-
cf76457a
by Jonathan Maw at 2018-07-27T17:03:37Z
3 changed files:
Changes:
1 | 1 |
[run]
|
2 | 2 |
concurrency = multiprocessing
|
3 | 3 |
include =
|
4 |
- */buildstream/*
|
|
5 |
- */bst-external/*
|
|
6 |
- |
|
7 |
-omit =
|
|
8 |
- # Omit profiling helper module
|
|
9 |
- */buildstream/_profile.py
|
|
4 |
+ *bst_external/elements/*
|
|
5 |
+ *bst_external/sources/*
|
|
10 | 6 |
|
11 | 7 |
[report]
|
12 | 8 |
show_missing = True
|
13 | 9 |
precision = 2
|
14 | 10 |
|
15 | 11 |
[paths]
|
16 |
-buildstream =
|
|
17 |
- buildstream/
|
|
18 |
- */site-packages/buildstream/
|
|
19 |
- */buildstream/buildstream/
|
|
20 |
-bst-external-elements =
|
|
21 |
- bst_external/elements/
|
|
22 |
- */site-packages/bst_external/elements
|
|
12 |
+bst-external =
|
|
13 |
+ bst_external/
|
|
14 |
+ */site-packages/bst_external/
|
... | ... | @@ -129,15 +129,18 @@ integration_unix: |
129 | 129 |
#
|
130 | 130 |
coverage:
|
131 | 131 |
stage: coverage
|
132 |
+ coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
|
132 | 133 |
script:
|
134 |
+ - cd dist && ./unpack.sh && cd bst-external
|
|
133 | 135 |
- pip3 install --no-index .
|
134 | 136 |
- mkdir report
|
135 | 137 |
- cd report
|
136 |
- - cp ../coverage-linux/coverage.linux .coverage
|
|
137 |
- - cp ../coverage-unix/coverage.unix .
|
|
138 |
- - coverage combine --rcfile=../.coveragerc -a ../coverage-unix/coverage.unix
|
|
138 |
+ - cp ../../../coverage-linux/coverage.linux .
|
|
139 |
+ - cp ../../../coverage-unix/coverage.unix .
|
|
140 |
+ - coverage combine --rcfile=../.coveragerc -a coverage.*
|
|
139 | 141 |
- coverage report --rcfile=../.coveragerc -m
|
140 | 142 |
dependencies:
|
143 |
+ - source_dist
|
|
141 | 144 |
- integration_linux
|
142 | 145 |
- integration_unix
|
143 | 146 |
|
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 |
test=pytest
|
3 | 3 |
|
4 | 4 |
[tool:pytest]
|
5 |
-addopts = --verbose --basetemp ./tmp --cov=buildstream --cov-config .coveragerc
|
|
5 |
+addopts = --verbose --basetemp ./tmp --cov=bst_external --cov-config .coveragerc
|
|
6 | 6 |
norecursedirs = integration-cache tmp __pycache__ .eggs
|
7 | 7 |
python_files = tests/*.py # Notice this line is different to main repo
|
8 | 8 |
pep8maxlinelength = 119
|
... | ... | @@ -15,4 +15,4 @@ pep8ignore = |
15 | 15 |
*/bin/* ALL
|
16 | 16 |
.eggs/* ALL
|
17 | 17 |
env =
|
18 |
- D:BST_TEST_SUITE=True
|
|
\ No newline at end of file | ||
18 |
+ D:BST_TEST_SUITE=True
|