Support Ubuntu 18.04 and 20.04 LTS as target OS
[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    -not -path {toxinidir}/.venv/\* \
16 # E006 check for lines longer than 79 columns
17    -name \*.sh | xargs bashate -v -iE006"
18    bash -c "yamllint {toxinidir}"
19    bash -c "find {toxinidir} \
20    -not -path {toxinidir}/.tox/\* \
21    -name \*.rst | xargs rstcheck"
22
23 [testenv:docs]
24 deps = -rdocs/requirements.txt
25 commands =
26     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
27     echo "Generated docs available in {toxinidir}/docs/_build/html"
28 whitelist_externals = echo
29
30 [testenv:docs-linkcheck]
31 deps = -rdocs/requirements.txt
32 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck