X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=092baf8c4fa41c5d3087e92614c54d4a4598fc52;hb=500d592d104b14b9dc79a365079c7f50ddfa0be1;hp=ba046a16d88bf33ff970123e44f9e8d6fa7374c0;hpb=0197a0346c951dc7417e30ddc0b4d86d3e07ff42;p=docs.git diff --git a/tox.ini b/tox.ini index ba046a16d..092baf8c4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,28 +1,23 @@ [tox] minversion = 1.6 -envlist = coala,docs +envlist = pre-commit,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 = -rrequirements.txt +basepython = python3 +deps = -rdocs/requirements.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 + sphinx-build -j auto -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 +basepython = python3 +deps = -rdocs/requirements.txt +commands = sphinx-build -j auto -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck + +[testenv:pre-commit] +basepython = python3 +deps = pre-commit +commands = + pre-commit install + pre-commit install --hook-type commit-msg + pre-commit run --all-files