Make py27 run tests on all backends by default

This is the same thing we do with Gnocchi, so we are sure all the
patches that we merge passed on all backends we support.

Change-Id: Ib24a6ea0d63d31985e0cd47335564263dcecbda2
This commit is contained in:
Julien Danjou 2015-07-23 12:56:26 +02:00
parent cf53ba65ed
commit 3ac87a4d44
1 changed files with 6 additions and 4 deletions

10
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,py34,py-mysql,py-pgsql,pep8
envlist = py27,py34,pep8
[testenv]
deps = -r{toxinidir}/requirements.txt
@ -12,21 +12,23 @@ setenv = VIRTUAL_ENV={envdir}
EVENTLET_NO_GREENDNS=yes
commands =
bash -x {toxinidir}/setup-test-env-mongodb.sh python setup.py testr --slowest --testr-args="{posargs}"
bash -x {toxinidir}/setup-test-env-mysql.sh python setup.py testr --slowest --testr-args="{posargs}"
bash -x {toxinidir}/setup-test-env-postgresql.sh python setup.py testr --slowest --testr-args="{posargs}"
whitelist_externals = bash
# TODO(ityaptin): With separation tests to unit and functional folders we need
# set environment variable OS_TEST_PATH=./aodh/tests/functional
# in "py-<backend>" jobs
[testenv:py-mongodb]
[testenv:py27-mongodb]
commands =
bash -x {toxinidir}/setup-test-env-mongodb.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py-mysql]
[testenv:py27-mysql]
commands =
bash -x {toxinidir}/setup-test-env-mysql.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py-pgsql]
[testenv:py27-pgsql]
commands =
bash -x {toxinidir}/setup-test-env-postgresql.sh python setup.py testr --slowest --testr-args="{posargs}"