5 envlist = shellcheck, yamllint, jjbtest, jjbdeploy
6 install_command = pip install --force-reinstall {opts} {packages}
7 deps = -r{toxinidir}/jjb/infra/test-requirements.txt
10 description = invoke jenkins-job-builder to analyse jjb templates
12 deps = -r{toxinidir}/jjb/infra/test-requirements.txt
13 whitelist_externals = bash
15 bash -c "jenkins-jobs --conf {toxinidir}/jjb/global/jenkins_jobs.ini \
16 test --config-xml --recursive {toxinidir}/jjb"
19 description = invoke jenkins-job-builder to deploy jobs from jjb templates
21 deps = -r{toxinidir}/jjb/infra/test-requirements.txt
22 whitelist_externals = bash
24 bash -c "jenkins-jobs --conf {toxinidir}/jjb/global/jenkins_jobs.ini \
25 --user $JJB_USERNAME --password $JJB_USERTOKEN update --recursive \
26 --delete-old --workers 4 {toxinidir}/jjb"
29 description = invoke yamllint to analyse YAML files
30 deps = -r{toxinidir}/jjb/infra/test-requirements.txt
32 whitelist_externals = bash
34 bash -c "find {toxinidir} -type f -regex '.*.ya?ml' \
35 ! -regex '.*.tox.*\|.*.venv.*' \
36 -print0 | xargs -t -n1 -0 yamllint --format standard --strict"
39 description = invoke shellcheck to analyse bash shell scripts
40 deps = -r{toxinidir}/jjb/infra/test-requirements.txt
42 whitelist_externals = bash
44 bash -c "find {toxinidir} -type f -regex '.*.sh' \
45 ! -regex '.*.tox.*\|.*.venv.*' \
46 -print0 | xargs -t -n1 -0 shellcheck --color=never --source-path={toxinidir} \
47 --external-sources --format=tty"
49 # vim: set ts=2 sw=2 ft=ini expandtab: