2012-10-26 13:21:45 -04:00
|
|
|
[tox]
|
|
|
|
envlist = py26,py27,pep8
|
2012-09-04 21:07:13 -05:00
|
|
|
|
2012-10-26 13:21:45 -04:00
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
|
|
-r{toxinidir}/tools/test-requires
|
|
|
|
setuptools_git>=0.4
|
2013-01-23 11:46:29 -08:00
|
|
|
commands = {envpython} run_tests.py
|
2013-03-06 18:24:17 -06:00
|
|
|
{envpython} run_tests.py --test-config=etc/tests/xml.localhost.test.conf
|
2013-01-23 11:46:29 -08:00
|
|
|
python setup.py testr --slowest
|
2012-05-23 09:32:49 -05:00
|
|
|
|
2012-10-26 13:21:45 -04:00
|
|
|
[tox:jenkins]
|
|
|
|
sitepackages = True
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-05-16 10:07:14 -07:00
|
|
|
commands = flake8
|
2012-10-26 13:21:45 -04:00
|
|
|
|
|
|
|
[testenv:cover]
|
2013-02-12 11:21:30 -06:00
|
|
|
basepython = python2.7
|
2012-11-16 11:50:34 -06:00
|
|
|
commands =
|
2013-03-15 11:20:20 -07:00
|
|
|
{envpython} run_tests.py --group=does_not_exist
|
2013-01-23 11:46:29 -08:00
|
|
|
coverage erase
|
2013-02-28 11:02:50 -08:00
|
|
|
python setup.py testr --coverage
|
2013-03-06 18:24:17 -06:00
|
|
|
coverage run -a run_tests.py
|
|
|
|
coverage html
|
2013-01-23 11:46:29 -08:00
|
|
|
coverage report
|
2012-11-16 11:50:34 -06:00
|
|
|
|
2012-05-23 09:32:49 -05:00
|
|
|
|
2012-10-26 13:21:45 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-05-16 10:07:14 -07:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
|
|
|
ignore = E125,F401,F403,F811,F821,F841,H
|
|
|
|
builtins = _
|
|
|
|
exclude=.venv,.tox,dist,doc,openstack,*egg,rsdns,tools
|