blob: 07a61f5dcb76f65fc588124dc1b391c6107f792c [file] [log] [blame]
Fatih Degirmencifc21e5f2020-01-13 07:58:59 +00001[tox]
2basepython = py36
3minversion = 2.5
4skipsdist = true
5envlist = ansible-lint, shellcheck, yamllint
6install_command = pip install {opts} {packages}
7deps = -r{toxinidir}/test-requirements.txt
8
9[testenv:ansible-lint]
10whitelist_externals = bash
11commands =
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]
16whitelist_externals = bash
17commands =
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]
22whitelist_externals = bash
23commands =
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"