mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-11-22 15:10:26 +00:00
CI: Test with ansible-core 2.21
Change-Id: Iabb17e193ebe1ba3e471cb46e3f323d43cb8ef9a Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
This commit is contained in:
@@ -41,7 +41,7 @@ commands =
|
||||
ansible-galaxy collection build --force {toxinidir} --output-path {toxinidir}/build_artifact
|
||||
bash {toxinidir}/tools/check-import.sh {toxinidir}
|
||||
|
||||
[testenv:linters_{2_18,2_19,2_20,latest}]
|
||||
[testenv:linters_{2_18,2_19,2_20,2_21,latest}]
|
||||
allowlist_externals = bash
|
||||
commands =
|
||||
{[testenv:build]commands}
|
||||
@@ -55,6 +55,7 @@ deps =
|
||||
linters_2_18: -r{toxinidir}/tests/requirements-ansible-2.18.txt
|
||||
linters_2_19: -r{toxinidir}/tests/requirements-ansible-2.19.txt
|
||||
linters_2_20: -r{toxinidir}/tests/requirements-ansible-2.20.txt
|
||||
linters_2_21: -r{toxinidir}/tests/requirements-ansible-2.21.txt
|
||||
passenv = *
|
||||
|
||||
[flake8]
|
||||
@@ -68,7 +69,7 @@ ignore = W503,H4,E501,E402,H301
|
||||
show-source = True
|
||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,ansible_collections
|
||||
|
||||
[testenv:ansible_{2_18,2_19,2_20,latest}]
|
||||
[testenv:ansible_{2_18,2_19,2_20,2_21,latest}]
|
||||
allowlist_externals = bash
|
||||
commands =
|
||||
bash {toxinidir}/ci/run-ansible-tests-collection.sh -e {envdir} {posargs}
|
||||
@@ -78,6 +79,7 @@ deps =
|
||||
ansible_2_18: -r{toxinidir}/tests/requirements-ansible-2.18.txt
|
||||
ansible_2_19: -r{toxinidir}/tests/requirements-ansible-2.19.txt
|
||||
ansible_2_20: -r{toxinidir}/tests/requirements-ansible-2.20.txt
|
||||
ansible_2_21: -r{toxinidir}/tests/requirements-ansible-2.21.txt
|
||||
# Need to pass some env vars for the Ansible playbooks
|
||||
passenv =
|
||||
HOME
|
||||
|
||||
Reference in New Issue
Block a user