Trivial fix: Fix coverage tox.ini job

This is a trivial PS that fixes the tox -e cover job in
tox.ini which was recently broken with [0].

[0] https://review.gerrithub.io/#/c/405318/

Change-Id: Id50a6348e6f306c3d8d68fdd79eb331880e7498b
This commit is contained in:
Felipe Monteiro 2018-04-02 18:48:27 +01:00 committed by Bryan Strassner
parent 4d642f849a
commit 6a521e2eb9
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{35,27},py{35,27}-{postgresql},pep8,bandit,docs
envlist = py{35,27},py{35,27}-{postgresql},cover,pep8,bandit,docs
[testenv]
usedevelop = True
@ -52,10 +52,15 @@ commands =
{toxinidir}/tools/functional-tests.sh '{posargs}'
[testenv:cover]
setenv = {[testenv]setenv}
PYTHON=coverage run --source deckhand --parallel-mode
commands =
coverage erase
find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args='{posargs}'
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:bandit]