Automate Bash style check

bashates all scripts under labs folder.
Change-Id: I99b3fbf7ee3eee41a1917cba236f78dc68f155e3
Closes-Bug: #1430649
This commit is contained in:
Utsav Dusad 2015-04-10 23:22:05 +05:30
parent 8b9835dfea
commit 5073cdfcaa
2 changed files with 6 additions and 0 deletions

View File

@ -7,3 +7,4 @@ pbr>=0.6,<1.0
oslosphinx
sphinx>=1.1.2,<1.2
hieroglyph>=0.5
bashate # pep8 equivalent for bash scripts

View File

@ -29,6 +29,11 @@ commands =
# Build training labs scripts
bash {toxinidir}/tools/generatelabs
[testenv:bashate_check]
commands =
# Bashate all scripts
bash -c "find labs/ -iname '*.sh' -print0 | xargs -0 bashate"
[doc8]
# Settings for doc8:
# File extensions to use