interop/tox.ini
Chris Hoge a7e844a057 Added formal 1.5 json schema for gating against.
Added formal 1.5 json schema to gate current guidelines against.
Updated next json files to validate against schema,
and updated next guideline schema version reference to 1.5,
with syntax changes that fixed ambiguous empty content and
duplication of data. Added tox jobs to lint and validate next
json files.

Change-Id: I13ee6b16115588527fde070e34874edf919aa864
2016-06-02 00:13:06 -07:00

50 lines
858 B
INI

[tox]
envlist = docs,doc8,pep8,jsonlint,jsonschema
minversion = 1.6
skipsdist = True
[testenv]
basepython=python2.7
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:doc8]
commands =
doc8 -e .rst doc/source
[testenv:docs]
commands=
python setup.py build_sphinx
[testenv:pep8]
basepython = python2.7
deps =
{[testenv]deps}
commands=
bash tools/flake8wrap.sh
whitelist_externals =
sh
bash
[flake8]
# E125 is deliberately excluded.
# See https://github.com/jcrocholl/pep8/issues/126
ignore = E125
exclude = .venv,.git,.tox,doc,conf.py
[testenv:jsonlint]
commands=
jsonlint -s next.json
jsonlint -s 2015.07.json
jsonlint -s 2016.01.json
jsonlint -s doc/source/schema/1.5.json
[testenv:jsonschema]
commands=
jsonschema doc/source/schema/1.5.json -i next.json