3 envlist = docs,docs-linkcheck,jjb-version,prefix,robot,
8 deps = -rdocs/requirements.txt
9 commands = sphinx-build -q -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
11 [testenv:docs-linkcheck]
12 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
14 deps = -rdocs/requirements.txt
15 commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
17 [testenv:jenkins-jobs]
19 jenkins-job-builder=={env:JJB_VERSION:4.1.0}
21 jenkins-jobs {posargs:--help}
24 commands = python {toxinidir}/check_jjb_version.py
26 [testenv:pre-commit-install]
31 pre-commit install --hook-type commit-msg
33 [testenv:pre-commit-uninstall]
38 pre-commit uninstall --hook-type commit-msg
45 pre-commit run --all-files --show-diff-on-failure
46 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
47 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
48 # Its default arguments --passed and --msg-filename are different from CI recommandations.
49 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.
52 commands = python {toxinidir}/check_prefix.py
56 commands = python {toxinidir}/check_robot.py
58 [testenv:cut-branch-jobs]
64 python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
65 - pre-commit run --all-files prettier
67 [testenv:checkbashisms]
69 whitelist_externals = sh
73 sh -c 'which checkbashisms>/dev/null || sudo yum install devscripts-minimal || sudo apt-get install devscripts \
74 || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \
75 yum install devscripts-minimal )" >&2 && exit 1)'
76 find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f \{\} +