Fatih Degirmenci | fc21e5f | 2020-01-13 07:58:59 +0000 | [diff] [blame^] | 1 | [tox] |
| 2 | basepython = py36 |
| 3 | minversion = 2.5 |
| 4 | skipsdist = true |
| 5 | envlist = ansible-lint, shellcheck, yamllint |
| 6 | install_command = pip install {opts} {packages} |
| 7 | deps = -r{toxinidir}/test-requirements.txt |
| 8 | |
| 9 | [testenv:ansible-lint] |
| 10 | whitelist_externals = bash |
| 11 | commands = |
| 12 | bash -c "find {toxinidir}/kolla -type f -regex '.*.ya?ml' ! -regex '.*heat-template.*' -print0 | \ |
| 13 | xargs -t -n1 -0 ansible-lint --nocolor" |
| 14 | |
| 15 | [testenv:yamllint] |
| 16 | whitelist_externals = bash |
| 17 | commands = |
| 18 | bash -c "find {toxinidir}/kolla -type f -regex '.*.ya?ml' -print0 | \ |
| 19 | xargs -t -n1 -0 yamllint --format standard --strict" |
| 20 | |
| 21 | [testenv:shellcheck] |
| 22 | whitelist_externals = bash |
| 23 | commands = |
| 24 | bash -c "find {toxinidir}/kolla -type f -name '*.sh' -print0 | \ |
| 25 | xargs -t -n1 -0 shellcheck --color=never --source-path={toxinidir}/kolla \ |
| 26 | --external-sources --format=tty" |