ansible-generator/templates/tox.ini.j2

28 lines
690 B
Django/Jinja

{{ ansible_managed | comment }}
[tox]
minversion = 3.21.4
{% if tox_versions is defined %}
envlist = py{310}-ansible-{% raw %}{{% endraw %}{% for version in tox_versions %}{{ version }}{% if not loop.last %},{% endif %}{% endfor %}{% raw %}}{% endraw %}
{% else %}
envlist = py{310}-ansible-{2.10,2.11,2.12}
{% endif %}
skipsdist = true
[testenv]
deps =
2.10: ansible-base == 2.10.*
2.11: ansible-core == 2.11.*
2.12: ansible-core == 2.12.*
molecule[docker]
docker == 4.*
ansible-lint == 5.*
commands = molecule test
setenv =
TOX_ENVNAME={envname}
PY_COLORS=1
ANSIBLE_FORCE_COLOR=1
ANSIBLE_ROLES_PATH=../
passenv = namespace image tag DOCKER_HOST