add tox to the tree for doing bashate checking

this enables a bashate rule for doing style checking. Fixes for
issues found will come in a second patch so any rules that people
want ignored could be debated there.

Change-Id: I7dffa587784297ec65596a36c0600473cfa591c6
This commit is contained in:
Sean Dague 2014-06-19 13:47:22 -04:00
parent d24d3ccacc
commit 5ca0a8700b
2 changed files with 14 additions and 0 deletions

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
bashate>=0.2

13
tox.ini Normal file
View File

@ -0,0 +1,13 @@
[tox]
envlist = bashate
minversion = 1.6
skipsdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:bashate]
commands =
bash -c "ls *.sh | xargs bashate -v {posargs}"