3 envlist = docs,docs-linkcheck,jjb-version,prefix,robot
7 deps = -rdocs/requirements.txt
8 commands = sphinx-build -q -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
10 [testenv:docs-linkcheck]
11 passenv = http_proxy, https_proxy, no_proxy
13 deps = -rdocs/requirements.txt
14 commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
16 [testenv:jenkins-jobs]
18 jenkins-job-builder=={env:JJB_VERSION:5.0.2}
20 jenkins-jobs {posargs:--help}
23 commands = python {toxinidir}/check_jjb_version.py
25 [testenv:pre-commit-install]
30 pre-commit install --hook-type commit-msg
32 [testenv:pre-commit-uninstall]
37 pre-commit uninstall --hook-type commit-msg
44 pre-commit run --all-files --show-diff-on-failure
45 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
46 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
47 # Its default arguments --passed and --msg-filename are different from CI recommandations.
48 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.
51 commands = python {toxinidir}/check_prefix.py
55 commands = python {toxinidir}/check_robot.py
57 [testenv:cut-branch-jobs]
63 python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
64 - pre-commit run --all-files prettier
66 [testenv:checkbashisms]
68 allowlist_externals = sh
72 sh -c 'which checkbashisms>/dev/null || sudo yum install devscripts-minimal || sudo apt-get install devscripts \
73 || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \
74 yum install devscripts-minimal )" >&2 && exit 1)'
75 find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f \{\} +
80 allowlist_externals = find
82 # .tox folder and submodules directories global-jjb/ & packer/common-packer/ must be excluded since they are not maintained here
83 find . -name *.py -not -path "./.tox/*" -not -path "./global-jjb/*" -not -path "./packer/common-packer/*" -exec \
84 pylint --fail-under=6.50 --max-line-length=120 --disable=missing-docstring --disable=fixme --disable=duplicate-code \{\} +