blob: 74691d7616799664c638d6b92660e83fe36e0547 [file] [log] [blame]
[tox]
basepython = py36
minversion = 2.5
skipsdist = true
envlist = ansible-lint, shellcheck, yamllint
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:ansible-lint]
# TODO: set ignore_outcome to false once issues are fixed
ignore_outcome = true
whitelist_externals = bash
commands =
bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -regex '.*.ya?ml' ! -regex '.*heat-template.*' -print0 | \
xargs -t -n1 -0 ansible-lint --nocolor"
[testenv:yamllint]
# TODO: set ignore_outcome to false once issues are fixed
ignore_outcome = true
whitelist_externals = bash
commands =
bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -regex '.*.ya?ml' -print0 | \
xargs -t -n1 -0 yamllint --format standard --strict"
[testenv:shellcheck]
# TODO: set ignore_outcome to false once issues are fixed
ignore_outcome = true
whitelist_externals = bash
commands =
bash -c "find {toxinidir}/apps {toxinidir}/scenarios -type f -name '*.sh' -print0 | \
xargs -t -n1 -0 shellcheck --color=never --source-path={toxinidir}/scenarios \
--external-sources --format=tty"