
Before we get too carried away, let's add some linters. This commit also fixes some linting failures in tripleo_ipa/meta/main.yml. Change-Id: Ic57d1b84a90ce5456812b9462c1af5539791b561
35 lines
896 B
INI
35 lines
896 B
INI
[tox]
|
|
minversion = 2.0
|
|
# add docs to the list of environments once we actually have docs to generate
|
|
envlist = molecule, linters
|
|
skipdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
|
|
passenv = *
|
|
sitepackages = True
|
|
deps =
|
|
-r {toxinidir}/molecule-requirements.txt
|
|
changedir = {toxinidir}/tripleo_ipa
|
|
commands = molecule test --all
|
|
whitelist_externals =
|
|
tox
|
|
|
|
[testenv:ansible-lint]
|
|
deps = {[testenv:linters]deps}
|
|
commands =
|
|
ansible-lint {toxinidir}/tripleo_ipa
|
|
|
|
[testenv:yamllint]
|
|
deps = {[testenv:linters]deps}
|
|
commands =
|
|
yamllint -c {toxinidir}/tripleo_ipa/.yamllint {toxinidir}/tripleo_ipa
|
|
|
|
[testenv:linters]
|
|
deps =
|
|
-r {toxinidir}/test-requirements.txt
|
|
commands =
|
|
{[testenv:ansible-lint]commands}
|
|
{[testenv:yamllint]commands}
|