Fix a set of issues with K8s deployment
[kuberef.git] / tox.ini
1 [tox]
2 minversion = 3.5
3 skipsdist = True
4 envlist = lint,docs
5
6 [testenv]
7 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
8
9 [testenv:lint]
10 deps =
11    -r{toxinidir}/test-requirements.txt
12 whitelist_externals = bash
13 commands = bash -c "find {toxinidir} \
14    -not -path {toxinidir}/.tox/\* \
15 # E006 check for lines longer than 79 columns
16    -name \*.sh | xargs bashate -v -iE006"
17    bash -c "yamllint {toxinidir}"
18    bash -c "find {toxinidir} \
19    -not -path {toxinidir}/.tox/\* \
20    -name \*.rst | xargs rstcheck"
21
22 [testenv:docs]
23 deps = -rdocs/requirements.txt
24 commands =
25     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
26     echo "Generated docs available in {toxinidir}/docs/_build/html"
27 whitelist_externals = echo
28
29 [testenv:docs-linkcheck]
30 deps = -rdocs/requirements.txt
31 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck