tooz/tox.ini
Joshua Harlow bb00a5beee Add a driver feature compatibility matrix
Change-Id: I8c5e58fbfa6da53a334ca43829d02d765f85a3fd
2015-03-09 18:34:00 -07:00

105 lines
3.2 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,py34,py27-zookeeper,py34-zookeeper,py27-redis,py34-redis,py27-sentinel,py34-sentinel,py27-memcached,py34-memcached,py27-postgresql,py34-postgresql,py27-mysql,py34-mysql,pep8
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
usedevelop = True
commands = python setup.py testr --slowest --testr-args="{posargs}"
[testenv:venv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:py27]
deps = {[testenv]deps}
doc8
commands = python setup.py testr --slowest --testr-args="{posargs}"
{toxinidir}/run-examples.sh
doc8 doc/source
[testenv:py34]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements.txt
[testenv:py27-zookeeper]
commands = {toxinidir}/setup-zookeeper-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-zookeeper]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-zookeeper-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-redis]
commands = {toxinidir}/setup-redis-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-redis]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-redis-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-sentinel]
commands = {toxinidir}/setup-sentinel-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-sentinel]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-sentinel-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-memcached]
commands = {toxinidir}/setup-memcached-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-memcached]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-memcached-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-postgresql]
commands = {toxinidir}/setup-postgresql-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-postgresql]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-postgresql-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py27-mysql]
commands = {toxinidir}/setup-mysql-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py34-mysql]
deps = {[testenv:py34]deps}
basepython = python3.4
commands = {toxinidir}/setup-mysql-env.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:cover]
commands = python setup.py testr --slowest --coverage --testr-args="{posargs}"
[testenv:docs]
deps = {[testenv]deps}
doc8
commands = doc8 doc/source
python setup.py build_sphinx
[testenv:pep8]
deps = hacking>=0.10.0,<0.11
commands =
flake8
[flake8]
ignore = H405,E126
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
show-source = True
[hacking]
import_exceptions = six.moves
unittest.mock
[doc8]
# This path is pretty much all automatically generated, and has really
# long lines, so just ignore it....
ignore-path = doc/source/compatibility.rst