X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=ba046a16d88bf33ff970123e44f9e8d6fa7374c0;hb=a4eeccae4fef139d2fb6eb3167180207bff501f8;hp=ee12e8ea750cc4a09155fb84d7ede57cc393d276;hpb=ed2c756a5b0eaf36c871c71ac8d99060002d8056;p=docs.git diff --git a/tox.ini b/tox.ini index ee12e8ea7..ba046a16d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,28 @@ [tox] minversion = 1.6 -envlist = docs +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 +commands = + nodeenv -p + npm install --global remark-cli remark-lint + coala --non-interactive + [testenv:docs] -deps = sphinx -commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html +deps = -rrequirements.txt +commands = + sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + echo "Generated docs available in {toxinidir}/docs/_build/html" +whitelist_externals = echo + +[testenv:docs-linkcheck] +deps = -rrequirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck