2013-06-15 07:49:11 +01:00
|
|
|
[tox]
|
2014-07-18 15:32:56 +02:00
|
|
|
envlist = py33,py26,py27,pep8
|
2013-06-15 07:49:11 +01:00
|
|
|
|
|
|
|
[testenv]
|
2014-02-26 17:05:07 -08:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
OS_TEST_TIMEOUT=30
|
2013-06-15 07:49:11 +01:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2014-06-26 06:32:27 +01:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2014-07-18 15:32:56 +02:00
|
|
|
[testenv:py33]
|
|
|
|
deps = -r{toxinidir}/requirements-py3.txt
|
|
|
|
-r{toxinidir}/test-requirements-py3.txt
|
|
|
|
|
2013-06-15 07:49:11 +01:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2014-07-23 21:07:15 +02:00
|
|
|
ignore = H237,H402,H405,H904
|
2013-06-23 16:41:50 +01:00
|
|
|
exclude = .tox,dist,doc,*.egg,build,__init__.py
|
2013-06-15 07:49:11 +01:00
|
|
|
builtins = _
|
2014-06-24 14:11:38 +02:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions =
|
|
|
|
oslo.messaging.openstack.common.gettextutils
|
2014-07-18 15:32:56 +02:00
|
|
|
six.moves
|