From c567f52f1b33af602a00accafbc5791dfbeaf2d0 Mon Sep 17 00:00:00 2001 From: Witold Bedyk Date: Tue, 27 Mar 2018 11:03:29 +0200 Subject: [PATCH] Clean up tox.ini * move common commands to [testenv] * add DB specific deps to [testenv:lower-constraints] Change-Id: I026365b27a579e1b4d80c86149feb675ff1a75d8 --- tox.ini | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/tox.ini b/tox.ini index e4dadf41..638d703f 100644 --- a/tox.ini +++ b/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