X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=f65fdce2cce98cc4356bfcff49df02e9449a6560;hb=e39a2f93b93986d3a8c22d8c70ce6baac9f3449f;hp=d44193016fea575b7f028834e5351d667c4b61cb;hpb=67a43b551e5488fe3d6d4c078423ac3d8e0653d2;p=docs.git diff --git a/tox.ini b/tox.ini index d44193016..f65fdce2c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,26 @@ [tox] minversion = 1.6 -envlist = docs,docs-linkcheck +envlist = coala,docs skipsdist = true +[testenv:coala] +basepython = python3 +deps = + coala==0.11 + coala-bears==0.11 + # Requests 2.16 breaks coala dependency on chardet + requests<2.16 + nodeenv==1.1.2 +commands = + nodeenv -p + npm install --global remark-cli remark-lint + coala --non-interactive + [testenv:docs] -deps = -rrequirements.txt -commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html +deps = -rdocs/requirements.txt +commands = + sphinx-build -j 4 -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html [testenv:docs-linkcheck] -deps = -rrequirements.txt -commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck +deps = -rdocs/requirements.txt +commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck