ansible-generator/templates/travis.yml.j2

41 lines
873 B
Django/Jinja

---
{{ ansible_managed | comment }}
language: python
python:
- "3.8"
services:
- docker
env:
global:
namespace="{{ docker_namespace }}"
matrix:
{% for platform in meta.galaxy_info.platforms %}
{% for version in platform.versions %}
{% for tag in distribution_version_mapping[platform.name][version] %}
- image="{{ platform_image_mapping[platform.name] }}" tag="{{ tag }}"
{% endfor %}
{% endfor %}
{% endfor %}
cache:
- pip
install:
- pip install --upgrade pip
- pip install tox
script:
{% if tox_parallel is defined and tox_parallel %}
- n=0 ; until [ "$n" = 3 ] ; do tox --parallel all && break ; n=$((n+1)) ; done
{% else %}
- n=0 ; until [ "$n" = 3 ] ; do tox && break ; n=$((n+1)) ; done
{% endif %}
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
slack: "{{ travis.notifications.slack }}"
email: false