X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=5136a3b65d5419f1f16600e4820a9dd9693ac475;hb=a001a61bdd6430027b39281f9d79366e837c7494;hp=fb6aca0cd9e134dcd9560a622da28f890155386a;hpb=056b2d4e36cefe108a764ad710996f8dfab2740f;p=oom.git diff --git a/tox.ini b/tox.ini index fb6aca0cd9..5136a3b65d 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = docs, docs-linkcheck, gitlint, + checkbashisms, skipsdist=true [doc8] @@ -11,17 +12,18 @@ ignore-path-errors=docs/helm-search.txt;D001 [testenv:doc8] deps = -rdocs/requirements-docs.txt + doc8 commands = - doc8 docs/ + - doc8 docs/ [testenv:docs] deps = -rdocs/requirements-docs.txt commands = - sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + sphinx-build -q -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html [testenv:docs-linkcheck] deps = -rdocs/requirements-docs.txt -commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck +commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck [testenv:spelling] #basepython = python3 @@ -43,6 +45,17 @@ deps = commands = gitlint +[testenv:checkbashisms] +deps = +whitelist_externals = sh + find + checkbashisms +commands = + sh -c 'which checkbashisms>/dev/null || sudo yum install devscripts-minimal || sudo apt-get install devscripts \ + || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \ + yum install devscripts-minimal )" >&2 && exit 1)' + find . -not -path '*/\.*' -name *.sh -exec checkbashisms \{\} + + [testenv:autopep8] deps = autopep8 commands =