2011-12-30 20:03:11 +01:00
|
|
|
[tox]
|
2014-11-24 14:33:15 +01:00
|
|
|
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
|
2012-01-19 01:29:09 +01:00
|
|
|
commands =
|
2015-03-15 19:00:10 +01:00
|
|
|
py26: trial [] jsonschema
|
|
|
|
py{27,34,py,py3}: green [] jsonschema
|
|
|
|
|
2015-03-15 16:41:34 +01:00
|
|
|
{envpython} -m doctest {toxinidir}/README.rst
|
2015-03-15 16:46:08 +01:00
|
|
|
py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
|
2013-02-03 22:44:08 +01:00
|
|
|
deps =
|
2015-03-15 16:45:34 +01:00
|
|
|
-e{toxinidir}[format]
|
|
|
|
|
2015-03-15 19:00:10 +01:00
|
|
|
py26: twisted
|
|
|
|
py{27,34,py,py3}: green
|
|
|
|
|
2014-11-24 14:33:15 +01:00
|
|
|
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-11-24 14:33:15 +01:00
|
|
|
|
2014-04-28 00:27:09 +02:00
|
|
|
[testenv:docs]
|
|
|
|
basepython = python
|
|
|
|
changedir = docs
|
|
|
|
deps =
|
2014-06-09 00:48:24 +02:00
|
|
|
-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-11-24 14:33:15 +01:00
|
|
|
|
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
|
|
|
|
2014-11-24 14:33:15 +01:00
|
|
|
|
2013-06-18 03:18:32 +02:00
|
|
|
[flake8]
|
|
|
|
ignore = E203,E302,E303,E701,F811
|