2014-04-22 11:38:02 +02:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2014-04-06 08:34:22 -07:00
|
|
|
envlist = pep8, py26, py27, pypy, py33, py34
|
2014-04-22 11:38:02 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv VIRTUAL_ENV={envdir}
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install {opts} {packages}
|
2014-07-09 14:02:50 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-04-25 12:37:08 -07:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
2014-04-22 11:38:02 +02:00
|
|
|
|
2014-04-25 10:23:31 -07:00
|
|
|
[testenv:cover]
|
|
|
|
commands =
|
|
|
|
coverage run -m discover
|
2014-09-29 09:51:32 -07:00
|
|
|
coverage report --omit="tests/*" --show-missing
|
2014-09-30 13:48:28 -07:00
|
|
|
coverage html --omit="tests/*" -d cover
|
2014-04-25 10:23:31 -07:00
|
|
|
|
2014-04-06 08:34:22 -07:00
|
|
|
[testenv:py26]
|
2014-07-09 14:02:50 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-04-06 08:34:22 -07:00
|
|
|
unittest2
|
|
|
|
|
2014-04-22 11:38:02 +02:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
2014-09-08 13:53:07 -07:00
|
|
|
[testenv:docs]
|
2014-04-25 12:37:08 -07:00
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2014-04-22 11:38:02 +02:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
; E501 line too long (80 > 79 characters)
|
2014-07-11 15:28:38 +02:00
|
|
|
ignore = E501
|
2014-04-22 11:38:02 +02:00
|
|
|
show-source = True
|
|
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|