9e394d24d0
This will give us a nice link to the goaccess reports on the zuul dashboard build pages. Move ansible-lint config into config file As of 4.2.0 we can configure ansible-lint with a config file. It's also apparently now smart enough to only find ansible yaml. Let's see how that goes. Add a fake zuul_return module This should let us fake out ansible-lint without having to install all of zuul. Change-Id: Ib233eb577a8ca2aabfe3a49b2cd823dd4a00bd82
43 lines
1.3 KiB
INI
43 lines
1.3 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = linters
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
whitelist_externals = bash
|
|
setenv =
|
|
ANSIBLE_LIBRARY= {toxinidir}/tools/fake-ansible/library
|
|
commands =
|
|
flake8
|
|
{toxinidir}/tools/run-bashate.sh
|
|
python3 {toxinidir}/tools/sorted_modules_env.py {toxinidir}/modules.env
|
|
python3 {toxinidir}/tools/irc_checks.py
|
|
python3 {toxinidir}/tools/check_clouds_yaml.py
|
|
# The following command validates that inventory/openstack.yaml
|
|
# parses, but doesn't do anything.
|
|
bash -c "ANSIBLE_INVENTORY_PLUGINS=./playbooks/roles/install-ansible/files/inventory_plugins ansible -i ./inventory/openstack.yaml not_a_host -a 'true'"
|
|
python3 -m unittest playbooks/roles/install-ansible/files/inventory_plugins/test_yamlgroup.py
|
|
ansible-lint playbooks roles
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -E -b html doc/source doc/build/html
|
|
|
|
[testenv:testinfra]
|
|
commands = py.test --junit-xml junit.xml --connection=ansible --ansible-inventory=/etc/ansible/hosts/inventory.yaml -v testinfra {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .tox,.eggs
|
|
ignore = E125,H
|
|
select = H231
|