blob: 674810006dcc4f795f5cf65e3f1bfa1c93fb9e09 [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 Moralesdd074802017-07-26 16:06:35 -050015commands = bash -c "find {toxinidir}/{tests,lib,tools} \
Victor Morales158c18c2017-08-06 11:23:15 -050016 -not \( -type d -path *files* -prune \) \
Victor Morales47a6f472017-08-09 14:25:50 -050017 -not \( -type f -name .*.swp* -prune \) \
18 -not \( -type f -name *.ps1 -prune \) \
Victor Moralesdd074802017-07-26 16:06:35 -050019 -type f \
Victor Morales89ce3212017-06-16 18:32:48 -050020# 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 Morales47a6f472017-08-09 14:25:50 -050025
26[testenv:docs]
27deps = sphinx
28commands = sphinx-build -W -b html doc/source doc/build/html