2012-05-21 16:32:35 -04:00
|
|
|
[tox]
|
2013-08-03 01:54:45 +00:00
|
|
|
distribute = False
|
2013-09-05 09:59:41 -07:00
|
|
|
envlist = py26,py27,py33,pypy,pep8
|
2013-12-09 14:25:58 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2012-05-21 16:32:35 -04:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:25:58 +00:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-05-21 16:44:06 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-24 22:01:28 -06:00
|
|
|
|
2013-05-18 09:18:07 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-12-24 22:01:28 -06:00
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
2012-05-21 16:32:35 -04:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-05-18 09:09:35 -07:00
|
|
|
commands = flake8
|
2012-05-21 16:32:35 -04:00
|
|
|
|
2012-05-21 16:44:06 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2012-12-24 22:01:28 -06:00
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-05-21 16:44:06 -04:00
|
|
|
|
2014-07-24 17:22:42 -04:00
|
|
|
[testenv:docs]
|
|
|
|
commands=
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2012-05-21 16:44:06 -04:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-05-18 09:09:35 -07:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2013-06-09 11:18:02 +02:00
|
|
|
ignore = F811,F821,H302,H306,H404
|
2013-05-18 09:09:35 -07:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|