X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=87e40692f98cb2e0cd0aadde0ca4c4170a48022e;hb=1fae77bfa5c402d875bf3f434eec9f8d5a599922;hp=ee12e8ea750cc4a09155fb84d7ede57cc393d276;hpb=93bb606b136a56060a8927af33292dd404ec0321;p=releng%2Fbuilder.git diff --git a/tox.ini b/tox.ini index ee12e8ea7..87e40692f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,42 @@ [tox] minversion = 1.6 -envlist = docs +envlist = coala,docs,jjb-version,pre-commit,prefix,robot skipsdist = true +[testenv:coala] +basepython = python3 +deps = + coala==0.11 + coala-bears==0.11 + nodeenv +commands = + nodeenv -p + npm install --global write-good + coala --non-interactive + [testenv:docs] -deps = sphinx -commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html +deps = -rdocs/requirements.txt +commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + +[testenv:jenkins-jobs] +deps = + jenkins-job-builder=={env:JJB_VERSION:2.9.1} +commands = + jenkins-jobs {posargs:--help} + +[testenv:jjb-version] +commands = python {toxinidir}/check_jjb_version.py + +[testenv:pre-commit] +basepython = python3 +deps = pre-commit +commands = + pre-commit install --hook-type commit-msg + pre-commit run --all-files + +[testenv:prefix] +commands = python {toxinidir}/check_prefix.py + +[testenv:robot] +basepython = python3 +commands = python {toxinidir}/check_robot.py