diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-05-31 16:50:51 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-05-31 16:50:51 +0000 |
commit | d1716100a992bdbf96793369cfc961af1c56b19a (patch) | |
tree | c81e0efdea028dfd1e8492ebb642f2941bda301c /tox.ini | |
parent | e351f4412c2dc944ef0db80d27ab6e24c515a6e3 (diff) | |
parent | 044cf85ef562da1cea696fc047277297c6ee7bf4 (diff) | |
download | oslo-db-d1716100a992bdbf96793369cfc961af1c56b19a.tar.gz |
Merge "Allow testing of MySQL and PostgreSQL scenario locally"
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -minversion = 1.6 +minversion = 1.8 envlist = py34,py27,pep8,pip-missing-reqs [testenv] @@ -8,7 +8,9 @@ whitelist_externals = bash setenv = VIRTUAL_ENV={envdir} deps = .[test,fixtures,mysql,postgresql] + py{27,34}-{postgresql,mysql,all}: .[pifpaf] commands = bash tools/pretty_tox.sh '{posargs}' +passenv = OS_TEST_DBAPI_ADMIN_CONNECTION [testenv:sqla_09] commands = pip install SQLAlchemy>=0.9.0,!=0.9.5,<1.0.0 @@ -19,6 +21,28 @@ commands = env TEST_EVENTLET=0 bash tools/pretty_tox.sh '{posargs}' env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}' +[testenv:py27-all] +commands = pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run mysql -- pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run postgresql -- {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + +[testenv:py34-all] +commands = pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run mysql -- pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run postgresql -- {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + +[testenv:py27-mysql] +commands = + pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run mysql {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + +[testenv:py27-postgresql] +commands = + pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run postgresql {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + +[testenv:py34-mysql] +commands = + pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run mysql {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + +[testenv:py34-postgresql] +commands = + pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run postgresql {toxinidir}/tools/run-pifpaf-tests.sh {posargs} + [testenv:mysql-python] deps = .[mysql-c,postgresql,test,fixtures] setenv = |