Clean up tox.ini
* move common commands to [testenv] * add DB specific deps to [testenv:lower-constraints] Change-Id: I026365b27a579e1b4d80c86149feb675ff1a75d8
This commit is contained in:
parent
56da6b42f7
commit
c567f52f1b
20
tox.ini
20
tox.ini
@ -26,30 +26,17 @@ deps =
|
||||
commands =
|
||||
find {toxinidir} -type f -name "*.py[c|o]" -delete
|
||||
rm -Rf .testrepository/times.dbm
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
ostestr {posargs}
|
||||
|
||||
[testenv:py35]
|
||||
basepython = python3.5
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
ostestr {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
coverage erase
|
||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monasca_persister
|
||||
python setup.py test --coverage --testr-args='{posargs}' \
|
||||
--coverage-package-name=monasca_persister
|
||||
coverage report
|
||||
|
||||
[testenv:debug]
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
oslo_debug_helper -t monasca_persister/tests {posargs}
|
||||
commands = oslo_debug_helper -t monasca_persister/tests {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
deps =
|
||||
@ -98,5 +85,6 @@ local-check-factory = monasca_persister.hacking.checks.factory
|
||||
basepython = python3
|
||||
deps =
|
||||
-c{toxinidir}/lower-constraints.txt
|
||||
.[influxdb,cassandra,elasticsearch]
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
|
Loading…
Reference in New Issue
Block a user