cookiecutter-ansible-role-d.../ansible-role-{{cookiecutter.app_name}}/{% raw %}.travis.yml{% endraw %}

26 lines
602 B
Plaintext
Raw Permalink Normal View History

2020-04-28 13:23:10 +02:00
---
dist: xenial
language: python
python: "3.9"
2020-04-28 13:23:10 +02:00
os: linux
services:
- docker
install:
- pip install -I pipenv
2020-04-28 13:23:10 +02:00
- pipenv sync
env:
jobs:
{% if "buster" in cookiecutter.platforms.debian_list %}- MOLECULE_DISTRO=debian:buster-slim{% endif %}
{% if "bullseye" in cookiecutter.platforms.debian_list %}- MOLECULE_DISTRO=debian:bullseye-slim{% endif %}
2020-04-28 13:23:10 +02:00
script:
- pipenv run molecule test --all
2020-04-28 13:23:10 +02:00
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
2021-04-29 15:32:18 +02:00
email:
if: branch = main
on_success: change
on_failure: always
recipients:
- laur.ivan@gmail.com