summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini46
1 files changed, 11 insertions, 35 deletions
diff --git a/tox.ini b/tox.ini
index 1c095cf..a1d7bf0 100644
--- a/tox.ini
+++ b/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 =