Fix bashate job

Bashate relies on tox, so add the required files for tox.

Change-Id: I86bcf54095d54666f45a3eb26f25a136ddd3319f
This commit is contained in:
Ben Swartzlander 2017-01-27 15:02:06 -05:00
parent 0603e69fe2
commit aab91a6caa
4 changed files with 22 additions and 0 deletions

5
.gitignore vendored
View File

@ -3,3 +3,8 @@ overlay*
buildroot buildroot
download download
*.qcow2 *.qcow2
.tox
AUTHORS
ChangeLog
.eggs
*.egg-info

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[metadata]
name = manila-test-image

3
setup.py Normal file
View File

@ -0,0 +1,3 @@
import setuptools
setuptools.setup(setup_requires=['pbr'], pbr=True)

12
tox.ini Normal file
View File

@ -0,0 +1,12 @@
[tox]
envlist = py27, py33
[testenv]
deps = {env:BASHATE_INSTALL_PATH:bashate==0.5.1}
[testenv:bashate]
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f -name \*.sh \
-print0 | xargs -0 bashate -v -iE002,E003,E010,E011"