From aab91a6caa472f2b383f5bbdc368fb7fb18d563d Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Fri, 27 Jan 2017 15:02:06 -0500 Subject: [PATCH] Fix bashate job Bashate relies on tox, so add the required files for tox. Change-Id: I86bcf54095d54666f45a3eb26f25a136ddd3319f --- .gitignore | 5 +++++ setup.cfg | 2 ++ setup.py | 3 +++ tox.ini | 12 ++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 3cebc01..fba5f31 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,8 @@ overlay* buildroot download *.qcow2 +.tox +AUTHORS +ChangeLog +.eggs +*.egg-info diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..aee8ae0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +name = manila-test-image diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..07f55fe --- /dev/null +++ b/setup.py @@ -0,0 +1,3 @@ +import setuptools + +setuptools.setup(setup_requires=['pbr'], pbr=True) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..ab2ea3a --- /dev/null +++ b/tox.ini @@ -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"