Add example files about IDF and PDF
[kuberef.git] / tox.ini
1 ; SPDX-FileCopyrightText: 2021 Anuket contributors
2 ;
3 ; SPDX-License-Identifier: Apache-2.0
4
5 [tox]
6 minversion = 3.5
7 skipsdist = True
8 envlist = lint,docs,docs-linkcheck
9
10 [testenv]
11 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
12
13 [testenv:lint]
14 deps = -r{toxinidir}/test-requirements.txt
15 whitelist_externals = bash
16 commands = bash -c "find {toxinidir} \
17    -not -path {toxinidir}/.tox/\* \
18    -not -path {toxinidir}/.venv/\* \
19 # E006 check for lines longer than 79 columns
20    -name \*.sh | xargs bashate -v -iE006"
21    bash -c "yamllint {toxinidir}"
22    bash -c "find {toxinidir} \
23    -not -path {toxinidir}/.tox/\* \
24    -name \*.rst | xargs rstcheck"
25
26 [testenv:docs]
27 deps = -r{toxinidir}/docs/requirements.txt
28 commands =
29     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
30     echo "Generated docs available in {toxinidir}/docs/_build/html"
31 whitelist_externals = echo
32
33 [testenv:docs-linkcheck]
34 deps = -r{toxinidir}/docs/requirements.txt
35 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck