2011-10-25 16:50:08 -07:00
|
|
|
[tox]
|
2013-11-14 21:00:54 -06:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2014-09-03 19:05:35 +00:00
|
|
|
envlist = py26,py27,py33,py34,pep8
|
2011-10-25 16:50:08 -07:00
|
|
|
|
|
|
|
[testenv]
|
2013-11-14 21:00:54 -06:00
|
|
|
usedevelop = True
|
2014-01-08 14:41:01 -06:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-03-21 10:34:46 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-25 00:02:54 -06:00
|
|
|
OS_STDOUT_NOCAPTURE=False
|
|
|
|
OS_STDERR_NOCAPTURE=False
|
|
|
|
|
2013-05-24 18:37:26 -05:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-12-25 00:02:54 -06:00
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
2012-06-14 14:14:25 -04:00
|
|
|
|
2011-12-30 14:27:36 -08:00
|
|
|
[testenv:pep8]
|
2013-05-10 18:19:59 -04:00
|
|
|
commands =
|
|
|
|
flake8
|
2011-12-30 14:27:36 -08:00
|
|
|
|
2012-03-21 10:34:46 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2012-12-25 00:02:54 -06:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-05-10 18:19:59 -04:00
|
|
|
|
2014-01-06 15:16:52 -06:00
|
|
|
[testenv:debug]
|
2014-09-09 10:14:54 -04:00
|
|
|
commands = oslo_debug_helper -t keystoneclient/tests {posargs}
|
2014-01-06 15:16:52 -06:00
|
|
|
|
2013-05-10 18:19:59 -04:00
|
|
|
[flake8]
|
2014-06-16 02:08:59 -04:00
|
|
|
# H405: multi line docstring summary not separated with an empty line
|
2015-01-22 11:54:45 +08:00
|
|
|
ignore = H405
|
2013-05-10 18:19:59 -04:00
|
|
|
show-source = True
|
2014-05-05 17:39:40 -05:00
|
|
|
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*
|
2014-02-10 18:47:37 -06:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands=
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2014-10-27 10:54:48 -05:00
|
|
|
[hacking]
|
|
|
|
import_exceptions =
|
|
|
|
keystoneclient.i18n
|
2015-01-08 17:29:47 -06:00
|
|
|
local-check-factory = keystoneclient.hacking.checks.factory
|