fix zuul cover issues
Change-Id: Ibd7c07397c14dc23452d65fea048a7416288d3f2
This commit is contained in:
parent
950ff0b60f
commit
e957f1ee38
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ dist/*
|
|||||||
build/
|
build/
|
||||||
.tox/*
|
.tox/*
|
||||||
env/*
|
env/*
|
||||||
|
cover/*
|
||||||
|
9
tox.ini
9
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py35,pep8,cover
|
envlist = py27,py35,pep8,cover_report
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -13,10 +13,15 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
commands =
|
||||||
|
coverage run --source='adjutant' .tox/cover/bin/adjutant-api test {posargs}
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
|
[testenv:cover_report]
|
||||||
commands =
|
commands =
|
||||||
coverage run --source='.' .tox/cover/bin/adjutant-api test {posargs}
|
coverage run --source='.' .tox/cover/bin/adjutant-api test {posargs}
|
||||||
coverage report --include adjutant/* -m
|
coverage report --include adjutant/* -m
|
||||||
basepython = python2.7
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user