blob: 141c151eec4b69e352d3f968f89249c51ab43001 [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
18commands = bash -c "find {toxinidir}/{scripts,lib} \
19 -not \( -type f -name *.swp -prune \) \
20 -not \( -type f -name *.xml -prune \) \
21 -type f \
22# E005 file does not begin with #! or have a .sh prefix
23# E006 check for lines longer than 79 columns
24# E042 local declaration hides errors
25# E043 Arithmetic compound has inconsistent return semantics
26 -print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043"