summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-05-20 09:06:46 +1200
committerRoman Podoliaka <rpodolyaka@mirantis.com>2015-11-30 17:01:36 +0000
commit01359ef1671bf2b7ecd22c210b35c9987c3a0550 (patch)
treeb7099cadc58f7e00802f29c2e53de204599cc125 /tox.ini
parent936ffc187d445ed7644d755bcdfa3be682b786fa (diff)
downloadoslo-db-01359ef1671bf2b7ecd22c210b35c9987c3a0550.tar.gz
Refactor deps to use extras and env markers4.1.0
Adds extras for e.g. nova to use for testing, so that oslo.db can control the libraries used. Removes test-requirements.txt - it becomes a single env-marker controlled list, and shows how tox will access those dependencies. Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com> Change-Id: I97ef5bad215abe60d92c3fda4474c48ccb13eab0
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 2 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index e94c0ea..f8629d5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,8 +7,7 @@ whitelist_externals = bash
env
setenv =
VIRTUAL_ENV={envdir}
-deps = .[fixtures]
- -r{toxinidir}/test-requirements.txt
+deps = .[test,fixtures,mysql,postgresql]
commands = bash tools/pretty_tox.sh '{posargs}'
[testenv:sqla_09]
@@ -21,11 +20,10 @@ commands =
env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}'
[testenv:mysql-python]
+deps = .[mysql-c,postgresql,test,fixtures]
setenv =
{[testenv]setenv}
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
-commands = pip install MySQL-python
- python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8