Jonathan Maw pushed to branch master at BuildStream / bst-external
Commits:
-
e983a446
by Jonathan Maw at 2018-07-27T13:42:50Z
-
cf76457a
by Jonathan Maw at 2018-07-27T17:03:37Z
-
7159303b
by Jonathan Maw at 2018-07-27T17:16:40Z
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/
|
| ... | ... | @@ -8,6 +8,7 @@ cache: |
| 8 | 8 |
stages:
|
| 9 | 9 |
- prepare
|
| 10 | 10 |
- test
|
| 11 |
+ - coverage
|
|
| 11 | 12 |
- docs
|
| 12 | 13 |
|
| 13 | 14 |
before_script:
|
| ... | ... | @@ -120,6 +121,29 @@ integration_unix: |
| 120 | 121 |
dependencies:
|
| 121 | 122 |
- source_dist
|
| 122 | 123 |
|
| 124 |
+#####################################################
|
|
| 125 |
+# Coverage stage #
|
|
| 126 |
+#####################################################
|
|
| 127 |
+ |
|
| 128 |
+# Collate coverage reports
|
|
| 129 |
+#
|
|
| 130 |
+coverage:
|
|
| 131 |
+ stage: coverage
|
|
| 132 |
+ coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
|
|
| 133 |
+ script:
|
|
| 134 |
+ - cd dist && ./unpack.sh && cd bst-external
|
|
| 135 |
+ - pip3 install --no-index .
|
|
| 136 |
+ - mkdir report
|
|
| 137 |
+ - cd report
|
|
| 138 |
+ - cp ../../../coverage-linux/coverage.linux .
|
|
| 139 |
+ - cp ../../../coverage-unix/coverage.unix .
|
|
| 140 |
+ - coverage combine --rcfile=../.coveragerc -a coverage.*
|
|
| 141 |
+ - coverage report --rcfile=../.coveragerc -m
|
|
| 142 |
+ dependencies:
|
|
| 143 |
+ - source_dist
|
|
| 144 |
+ - integration_linux
|
|
| 145 |
+ - integration_unix
|
|
| 146 |
+ |
|
| 123 | 147 |
# Automatically build documentation, only for merges which land
|
| 124 | 148 |
# on master branch.
|
| 125 | 149 |
#
|
| ... | ... | @@ -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
|
