blob: 6ab309fdfe0ea5d391b0b4444f02b304710917f4 [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]
Victor Morales89ce3212017-06-16 18:32:48 -050012deps =
Victor Morales47a6f472017-08-09 14:25:50 -050013 {env:BASHATE_INSTALL_PATH:bashate}
Victor Morales89ce3212017-06-16 18:32:48 -050014whitelist_externals = bash
Victor Morales6d280a12017-10-23 11:56:43 -070015commands = bash -c "find {toxinidir}/{tests,lib,tools} \
16 -not \( -type d -path *files* -prune \) \
17 -not \( -type f -name .*.swp* -prune \) \
18 -not \( -type f -name *.ps1 -prune \) \
19 -not \( -type f -name installed-software* -prune \) \
20 -not \( -type f -name *projects.txt -prune \) \
21 -type f \
Victor Morales89ce3212017-06-16 18:32:48 -050022# 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"
Victor Morales47a6f472017-08-09 14:25:50 -050027
28[testenv:docs]
29deps = sphinx
30commands = sphinx-build -W -b html doc/source doc/build/html