X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=6926c2677b4d46d9c9bf56da91829f13d26aaed8;hb=fa80db8a9dd2241982480e1db9ae8b5fa811e3c5;hp=f1635af34d43fe9bbce7b4eb64dac13cecbc602d;hpb=01adbd741f7bd8b94c5f91a9bbe2fee6ab31a104;p=releng%2Fbuilder.git diff --git a/tox.ini b/tox.ini index f1635af34..6926c2677 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ [tox] minversion = 1.6 -envlist = docs,docs-linkcheck,jjb-version,pre-commit,prefix,robot +envlist = docs,docs-linkcheck,jjb-version,prefix,robot, +# pre-commit skipsdist = true [testenv:docs] @@ -15,7 +16,7 @@ commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxi [testenv:jenkins-jobs] deps = - jenkins-job-builder=={env:JJB_VERSION:3.5.0} + jenkins-job-builder=={env:JJB_VERSION:4.1.0} commands = jenkins-jobs {posargs:--help} @@ -62,3 +63,14 @@ deps = commands = python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb - pre-commit run --all-files prettier + +[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 -f \{\} +