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] |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 12 | deps = |
Victor Morales | 47a6f47 | 2017-08-09 14:25:50 -0500 | [diff] [blame] | 13 | {env:BASHATE_INSTALL_PATH:bashate} |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 14 | whitelist_externals = bash |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 15 | commands = bash -c "find {toxinidir}/{tests,lib,tools} \ |
Victor Morales | 158c18c | 2017-08-06 11:23:15 -0500 | [diff] [blame] | 16 | -not \( -type d -path *files* -prune \) \ |
Victor Morales | 47a6f47 | 2017-08-09 14:25:50 -0500 | [diff] [blame] | 17 | -not \( -type f -name .*.swp* -prune \) \ |
| 18 | -not \( -type f -name *.ps1 -prune \) \ |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 19 | -type f \ |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 20 | # E005 file does not begin with #! or have a .sh prefix |
| 21 | # E006 check for lines longer than 79 columns |
| 22 | # E042 local declaration hides errors |
| 23 | # E043 Arithmetic compound has inconsistent return semantics |
| 24 | -print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043" |
Victor Morales | 47a6f47 | 2017-08-09 14:25:50 -0500 | [diff] [blame] | 25 | |
| 26 | [testenv:docs] |
| 27 | deps = sphinx |
| 28 | commands = sphinx-build -W -b html doc/source doc/build/html |