Clean up tox.ini

* move common commands to [testenv]

Change-Id: I46b155d3a19f0cdbf3a2694bbf2d1d7541737607
This commit is contained in:
Witold Bedyk 2018-03-27 12:41:05 +02:00
parent fafcdf65ec
commit fc269dc6f3
1 changed files with 1 additions and 14 deletions

15
tox.ini
View File

@ -21,31 +21,18 @@ whitelist_externals = bash
rm
commands =
find . -type f -name "*.py[c|o]" -delete
[testenv:py27]
basepython = python2.7
commands =
{[testenv]commands}
ostestr {posargs}
[testenv:py35]
basepython = python3.5
commands =
{[testenv]commands}
ostestr {posargs}
ostestr {posargs}
[testenv:cover]
basepython = python2.7
commands =
{[testenv]commands}
coverage erase
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monascastatsd
coverage report
[testenv:debug]
commands =
{[testenv]commands}
oslo_debug_helper -t {toxinidir}/tests {posargs}
[testenv:docs]