Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
68 lines (50 sloc) 1.853 kB
[tox]
envlist = py{26,27,34,py,py3}, docs, style
[testenv]
setenv =
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
whitelist_externals =
python2.7
sh
virtualenv
commands =
py26: sh -c 'cd {envtmpdir}; {envbindir}/trial [] jsonschema'
py{27,34,py,py3}: {envbindir}/green [] jsonschema
{envpython} -m doctest {toxinidir}/README.rst
py{26,27,34}: {envbindir}/sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
# Check to make sure that releases build and install properly
virtualenv --quiet --python=python2.7 {envtmpdir}/venv
{envtmpdir}/venv/bin/pip install --quiet wheel
{envtmpdir}/venv/bin/python {toxinidir}/setup.py --quiet bdist_wheel --dist-dir={envtmpdir}/wheel
sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/wheel/jsonschema*.whl'
python2.7 {toxinidir}/setup.py --quiet sdist --dist-dir={envtmpdir}/sdist --format=gztar,zip
sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.tar.gz'
sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.zip'
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
[testenv:coverage]
commands =
coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green jsonschema
coverage report --show-missing
coverage html
deps =
coverage
[testenv:docs]
basepython = python
changedir = docs
deps =
-r{toxinidir}/docs/doc-requirements.txt
commands =
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:style]
deps = flake8
commands =
flake8 [] --max-complexity 10 {toxinidir}/jsonschema
[flake8]
ignore = E203,E302,E303,E701,F811
Jump to Line
Something went wrong with that request. Please try again.