blob: 74691d7616799664c638d6b92660e83fe36e0547 [file] [log] [blame]
Fatih Degirmenci1d64dc42020-01-13 07:27:18 +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]
10# TODO: set ignore_outcome to false once issues are fixed
11ignore_outcome = true
12whitelist_externals = bash
13commands =
14 bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -regex '.*.ya?ml' ! -regex '.*heat-template.*' -print0 | \
15 xargs -t -n1 -0 ansible-lint --nocolor"
16
17[testenv:yamllint]
18# TODO: set ignore_outcome to false once issues are fixed
19ignore_outcome = true
20whitelist_externals = bash
21commands =
22 bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -regex '.*.ya?ml' -print0 | \
23 xargs -t -n1 -0 yamllint --format standard --strict"
24
25[testenv:shellcheck]
26# TODO: set ignore_outcome to false once issues are fixed
27ignore_outcome = true
28whitelist_externals = bash
29commands =
30 bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -name '*.sh' -print0 | \
31 xargs -t -n1 -0 shellcheck --color=never --source-path={toxinidir}/scenarios \
32 --external-sources --format=tty"