public-health-ch/ansible/roles/geerlingguy.certbot/.travis.yml

34 lines
782 B
YAML
Raw Normal View History

2017-06-02 10:52:15 +00:00
---
2018-12-17 12:50:15 +00:00
language: python
2017-06-02 10:52:15 +00:00
services: docker
env:
2018-12-17 12:50:15 +00:00
global:
- ROLE_NAME: certbot
matrix:
- MOLECULE_DISTRO: centos7
MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd
- MOLECULE_DISTRO: centos6
MOLECULE_PLAYBOOK: playbook-source-install.yml
- MOLECULE_DISTRO: ubuntu1604
- MOLECULE_DISTRO: ubuntu1404
MOLECULE_PLAYBOOK: playbook-source-install.yml
- MOLECULE_DISTRO: debian9
2017-06-02 10:52:15 +00:00
2018-12-17 12:50:15 +00:00
install:
# Install test dependencies.
- pip install molecule docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME geerlingguy.$ROLE_NAME
- cd geerlingguy.$ROLE_NAME
2017-06-02 10:52:15 +00:00
2018-12-17 12:50:15 +00:00
script:
2017-06-02 10:52:15 +00:00
# Run tests.
2018-12-17 12:50:15 +00:00
- molecule test
2017-06-02 10:52:15 +00:00
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/