X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=01019bbd18fef5b2aa855f5918cfcc07a6a0908f;hb=9e54dd9d9655b07dd983a187b6c666226723e15b;hp=61acbbba2a6a2cbd06089a4ea31af234db766bc2;hpb=f657a816b9074f5bf2b3d300d93266269c1f05a5;p=oom.git diff --git a/tox.ini b/tox.ini index 61acbbba2a..01019bbd18 100644 --- a/tox.ini +++ b/tox.ini @@ -57,15 +57,17 @@ commands = [testenv:checkbashisms] deps = -whitelist_externals = sh - find - checkbashisms +whitelist_externals = + {toxinidir}/.ci/check-bashisms.sh 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 \{\} + - sh -c "! find . -not -path '*/\.*' -name *.sh -exec grep 'local .*=' \{\} + || exit 2" + {toxinidir}/.ci/check-bashisms.sh + +[testenv:shellcheck] +basepython = python3 +deps = shellcheck-py +whitelist_externals = find +commands = + find . -not -path '*/\.*' -name *.sh -exec shellcheck \{\} + [testenv:autopep8] deps =