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/
|
||||
.tox/*
|
||||
env/*
|
||||
cover/*
|
||||
|
9
tox.ini
9
tox.ini
@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
envlist = py27,py35,pep8,cover
|
||||
envlist = py27,py35,pep8,cover_report
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
@ -13,10 +13,15 @@ setenv = VIRTUAL_ENV={envdir}
|
||||
commands = flake8
|
||||
|
||||
[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 =
|
||||
coverage run --source='.' .tox/cover/bin/adjutant-api test {posargs}
|
||||
coverage report --include adjutant/* -m
|
||||
basepython = python2.7
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user