Fixing jenkins failing on coverage reporting

Coverage combine deletes reports and thus jenkins failed
saying `no data to report`, this change fixes it.

Change-Id: Ia95ec755513d4382f9ad945e9688836445aee4d3
This commit is contained in:
Rahul Nair 2016-07-31 21:51:46 -05:00
parent ee6cb05538
commit a54ab7561d
2 changed files with 6 additions and 3 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[report]
include = bandit/*
omit = bandit/tests/functional/*

View File

@ -10,10 +10,10 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage combine
coverage report -m
commands =
coverage erase
python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage report -m
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:debug]