ansible-generator/templates/tox.ini.j2

29 lines
846 B
Django/Jinja

{{ ansible_managed | comment }}
[tox]
minversion = 3.7
{% if tox_versions is defined %}
envlist = py{37}-ansible-{% raw %}{{% endraw %}{% for version in tox_versions %}{{ version }}{% if not loop.last %},{% endif %}{% endfor %}{% raw %}}{% endraw %}
{% else %}
# Disabled "next" because of:
# https://github.com/ansible-community/molecule/issues/2626.
# envlist = py{37}-ansible-{previous,current,next}
envlist = py{37}-ansible-{previous,current}
{% endif %}
skipsdist = true
[testenv]
deps =
previous: ansible>=2.8, <2.9
current: ansible>=2.9
next: git+https://github.com/ansible/ansible.git@devel
molecule>=3, <4
docker
ansible-lint
commands = molecule test
setenv =
TOX_ENVNAME={envname}
MOLECULE_EPHEMERAL_DIRECTORY=/tmp/.molecule/{env:image:fedora}-{env:tag:latest}/{envname}
passenv = namespace image tag