Consolidate pifpaf commands into variables
Removes the separate per-Python-interpreter setup for the pifpaf run and consolidates necessary variables in one place to be passed into a single command line. Change-Id: I2f34642f16d6dba5b01500fcdc89e88b93642cd3
This commit is contained in:
parent
b791ed51a2
commit
a9ec13d949
46
tox.ini
46
tox.ini
@ -7,9 +7,18 @@ whitelist_externals = bash
|
||||
env
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
BASECOMMAND=bash tools/pretty_tox.sh
|
||||
|
||||
{postgresql,all}: PIFPAF_POSTGRESQL=pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run postgresql --
|
||||
{mysql,all}: PIFPAF_MYSQL=pifpaf -g OS_TEST_DBAPI_ADMIN_CONNECTION run mysql --
|
||||
{mysql,postgresql,all}: BASECOMMAND={toxinidir}/tools/run-pifpaf-tests.sh
|
||||
|
||||
deps = .[test,fixtures,mysql,postgresql]
|
||||
py{27,34,35}-{postgresql,mysql,all}: .[pifpaf]
|
||||
commands = bash tools/pretty_tox.sh '{posargs}'
|
||||
{postgresql,mysql,all}: .[pifpaf]
|
||||
|
||||
commands =
|
||||
{env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} '{posargs}'
|
||||
|
||||
passenv = OS_TEST_DBAPI_ADMIN_CONNECTION
|
||||
|
||||
[testenv:sqla_09]
|
||||
@ -21,39 +30,6 @@ 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:py35-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:py35-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:py35-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 =
|
||||
|
Loading…
Reference in New Issue
Block a user