Clean up tox.ini
* move common commands to [testenv] Change-Id: I46b155d3a19f0cdbf3a2694bbf2d1d7541737607
This commit is contained in:
parent
fafcdf65ec
commit
fc269dc6f3
15
tox.ini
15
tox.ini
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue