fix zuul cover issues

Change-Id: Ibd7c07397c14dc23452d65fea048a7416288d3f2
This commit is contained in:
Adrian Turjak 2017-10-30 14:13:05 +13:00
parent 950ff0b60f
commit e957f1ee38
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ dist/*
build/
.tox/*
env/*
cover/*

View File

@ -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}