debian-python-jsonschema/tox.ini

54 lines
1.0 KiB
INI
Raw Normal View History

2011-12-30 20:03:11 +01:00
[tox]
envlist = py{26,27,34,py,py3}, docs, style
2011-12-30 20:03:11 +01:00
[testenv]
2015-03-15 16:41:34 +01:00
changedir = {envtmpdir}
2015-03-15 17:24:33 +01:00
setenv =
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
commands =
py26: trial [] jsonschema
py{27,34,py,py3}: green [] jsonschema
2015-03-15 16:41:34 +01:00
{envpython} -m doctest {toxinidir}/README.rst
py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
2013-02-03 22:44:08 +01:00
deps =
-e{toxinidir}[format]
py26: twisted
py{27,34,py,py3}: green
py26: unittest2
py{26,27,py,py3}: mock
py{26,27,34}: lxml
py{26,27,34,py}: sphinx
2013-06-18 03:18:32 +02:00
2014-04-28 00:27:09 +02:00
[testenv:coverage]
commands =
2015-03-15 17:24:33 +01:00
coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green jsonschema
2014-04-28 00:27:09 +02:00
coverage report --show-missing
coverage html
deps =
coverage
2014-04-28 00:27:09 +02:00
[testenv:docs]
basepython = python
changedir = docs
deps =
-r{toxinidir}/docs/doc-requirements.txt
2014-04-28 00:27:09 +02:00
commands =
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
2014-04-28 00:27:09 +02:00
[testenv:style]
deps = flake8
commands =
2015-03-15 16:41:34 +01:00
flake8 [] --max-complexity 10 {toxinidir}/jsonschema
2014-04-28 00:27:09 +02:00
2013-06-18 03:18:32 +02:00
[flake8]
ignore = E203,E302,E303,E701,F811