From: Stephen Finucane Date: Wed, 4 Jan 2017 13:14:33 +0000 (+0000) Subject: tox: Add 'bashate' target X-Git-Tag: v2.0.0-rc1~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83a63a2af026b35386552e0a2bc641285143890d;p=thirdparty%2Fpatchwork.git tox: Add 'bashate' target This is not as powerful as Shellcheck (yet), but it's Python and therefore installable in a virtualenv. Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- diff --git a/tox.ini b/tox.ini index 319a8c70..bf38f8f4 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,15 @@ commands = {toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \ '{posargs:patchwork}' +[testenv:bashate] +deps = bashate>=0.5,<0.6 +whitelist_externals = bash +commands = + bash -c "find {toxinidir} \ + -not \( -type d -name .?\* -prune \) \ + -not \( -type d -name db -prune \) \ + -name \*.sh -print | xargs bashate" + [testenv:pep8] basepython = python2.7 deps = flake8