1 ; SPDX-FileCopyrightText: 2021 Anuket contributors
3 ; SPDX-License-Identifier: Apache-2.0
11 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
15 -r{toxinidir}/test-requirements.txt
16 whitelist_externals = bash
17 commands = bash -c "find {toxinidir} \
18 -not -path {toxinidir}/.tox/\* \
19 -not -path {toxinidir}/.venv/\* \
20 # E006 check for lines longer than 79 columns
21 -name \*.sh | xargs bashate -v -iE006"
22 bash -c "yamllint {toxinidir}"
23 bash -c "find {toxinidir} \
24 -not -path {toxinidir}/.tox/\* \
25 -name \*.rst | xargs rstcheck"
28 deps = -rdocs/requirements.txt
30 sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
31 echo "Generated docs available in {toxinidir}/docs/_build/html"
32 whitelist_externals = echo
34 [testenv:docs-linkcheck]
35 deps = -rdocs/requirements.txt
36 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck