blob: e73896035e29c1f5e33c491533f610c08fe64100 [file] [log] [blame]
Fatih Degirmenci10a35222020-01-13 08:03:37 +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}/bifrost -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}/bifrost -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}/bifrost -type f -name '*.sh' -print0 | \
25 xargs -t -n1 -0 shellcheck --color=never --source-path={toxinidir}/bifrost \
26 --external-sources --format=tty"