summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 049deaec36b9ab209702e0c4a3f5663ad0786439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[tox]
minversion = 1.6
skipsdist = True
envlist = bashate

[testenv]
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
usedevelop = False
install_command = pip install {opts} {packages}

[testenv:bashate]
deps =
   {env:BASHATE_INSTALL_PATH:bashate}
   rstcheck
whitelist_externals = bash
commands = bash -c "find {toxinidir} -not -path {toxinidir}/.tox/\* \
   -not -path {toxinidir}/pkg/dep/\* \
   -not -path {toxinidir}/src/k8splugin/vendor/\* \
   -not -path {toxinidir}/src/github.com/\* \
   -name \*.sh -type f \
# E006 check for lines longer than 79 columns
   -print0 | xargs -0 bashate -v -iE006"
   bash -c "find {toxinidir}/docs \
   -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"

[testenv:docs]
deps = sphinx
commands = sphinx-build -W -b html docs docs/build/html