aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/tox.ini')
-rw-r--r--bootstrap/vagrant-onap/tox.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tox.ini b/bootstrap/vagrant-onap/tox.ini
new file mode 100644
index 000000000..141c151ee
--- /dev/null
+++ b/bootstrap/vagrant-onap/tox.ini
@@ -0,0 +1,26 @@
+[tox]
+minversion = 1.6
+skipsdist = True
+envlist = bashate
+
+[testenv]
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+usedevelop = False
+install_command = pip install {opts} {packages}
+
+[testenv:bashate]
+# if you want to test out some changes you have made to bashate
+# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
+# modified bashate tree
+deps =
+ {env:BASHATE_INSTALL_PATH:bashate==0.5.1}
+whitelist_externals = bash
+commands = bash -c "find {toxinidir}/{scripts,lib} \
+ -not \( -type f -name *.swp -prune \) \
+ -not \( -type f -name *.xml -prune \) \
+ -type f \
+# E005 file does not begin with #! or have a .sh prefix
+# E006 check for lines longer than 79 columns
+# E042 local declaration hides errors
+# E043 Arithmetic compound has inconsistent return semantics
+ -print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043"