15 deps = -rrequirements.txt
17 sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
19 [testenv:ensure-documented]
21 ./ensure-documented.sh
26 jenkins-job-builder==2.8.0
28 jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
30 [testenv:jjb-compare-xml]
42 jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
46 commands = python {toxinidir}/check_jjb_version.py
50 commands = lftools license check-dir -r '.+' shell
60 pre-commit run --all-files --show-diff-on-failure
61 /bin/sh -c 'if ! git config --get user.name > /dev/null; then \
62 git config --global --add user.name "CI"; \
63 touch .git/REMOVE_USERNAME; fi'
64 /bin/sh -c 'if ! git config --get user.email > /dev/null; then \
65 git config --global --add user.email "ci@example.org"; \
66 touch .git/REMOVE_USEREMAIL; fi'
67 /bin/sh -c "if [ -f .git/COMMIT_EDITMSG ]; then \
68 cp .git/COMMIT_EDITMSG .git/COMMIT_MSGTOX; else \
69 git log HEAD -n1 | tail -n +5 | cut -c 5- > .git/COMMIT_MSGTOX; fi"
70 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_MSGTOX
71 /bin/sh -c "rm -f .git/COMMIT_MSGTOX"
72 /bin/sh -c "if [ -f .git/REMOVE_USERNAME ]; then \
73 git config --global --unset user.name; \
74 rm -f .git/REMOVE_USERNAME; fi"
75 /bin/sh -c "if [ -f .git/REMOVE_USEREMAIL ]; then \
76 git config --global --unset user.email; \
77 rm -f .git/REMOVE_USEREMAIL; fi"
83 whitelist_externals = sh
86 find . -not -path '*/\.*' -name *.sh -exec bashate \{\} +
87 #The option --max-line-length 80 is used by default.
93 [testenv:jenkins-jobs]
95 jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
97 jenkins-jobs {posargs:--help}
100 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
101 commands = lftools {posargs:--help}
104 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
105 commands = openstack {posargs:--help}
108 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.11.2}
109 commands = reno {posargs:--help}