blob: 3a2743d519f4296c75749b34800610ea2ffce6bd [file] [log] [blame]
Victor Morales89ce3212017-06-16 18:32:48 -05001[tox]
2minversion = 1.6
3skipsdist = True
4envlist = bashate
5
6[testenv]
7passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
8usedevelop = False
9install_command = pip install {opts} {packages}
10
11[testenv:bashate]
12# if you want to test out some changes you have made to bashate
13# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
14# modified bashate tree
15deps =
16 {env:BASHATE_INSTALL_PATH:bashate==0.5.1}
17whitelist_externals = bash
Victor Moralesdd074802017-07-26 16:06:35 -050018commands = bash -c "find {toxinidir}/{tests,lib,tools} \
19 -not \( -type f -name *.template -prune \) \
Nate Potter9fa943b2017-08-01 16:28:48 -070020 -not \( -type f -name *.pem -prune \) \
21 -not \( -type f -name *.cfg -prune \) \
Victor Moralesdd074802017-07-26 16:06:35 -050022 -type f \
Victor Morales89ce3212017-06-16 18:32:48 -050023# E005 file does not begin with #! or have a .sh prefix
24# E006 check for lines longer than 79 columns
25# E042 local declaration hides errors
26# E043 Arithmetic compound has inconsistent return semantics
27 -print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043"