cookiecutter-ansible-role/{{cookiecutter.app_name}}_role/{% raw %}.travis.yml{% endraw %}
Pablo Gómez-Caldito 0cde8c32d9 first commit
2020-04-28 13:23:10 +02:00

21 lines
616 B
Plaintext

---
dist: xenial
language: python
python: "3.7"
os: linux
services:
- docker
install:
- pip install pipenv
- pipenv sync
env:
jobs:
{% if cookiecutter.debian_jessie_support == 'True' %}- MOLECULE_DISTRO=debian:jessie-slim{% endif %}
{% if cookiecutter.debian_stretch_support == 'True' %}- MOLECULE_DISTRO=debian:stretch-slim{% endif %}
{% if cookiecutter.debian_buster_support == 'True' %}- MOLECULE_DISTRO=debian:buster-slim{% endif %}
script:
- export MOLECULE_DISTRO=${MOLECULE_DISTRO}
- pipenv run molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/