Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | skipsdist = True |
| 4 | envlist = bashate |
| 5 | |
| 6 | [testenv] |
| 7 | passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY |
| 8 | usedevelop = False |
| 9 | install_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 |
| 15 | deps = |
| 16 | {env:BASHATE_INSTALL_PATH:bashate==0.5.1} |
| 17 | whitelist_externals = bash |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 18 | commands = bash -c "find {toxinidir}/{tests,lib,tools} \ |
| 19 | -not \( -type f -name *.template -prune \) \ |
Nate Potter | 9fa943b | 2017-08-01 16:28:48 -0700 | [diff] [blame] | 20 | -not \( -type f -name *.pem -prune \) \ |
| 21 | -not \( -type f -name *.cfg -prune \) \ |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 22 | -type f \ |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 23 | # 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" |