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

32 lines
673 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:
2020-05-15 20:41:39 +00:00
- ROLE_NAME: docker
2018-12-17 12:50:15 +00:00
matrix:
2020-05-15 20:41:39 +00:00
- MOLECULE_DISTRO: centos8
2018-12-17 12:50:15 +00:00
- MOLECULE_DISTRO: centos7
2020-05-15 20:41:39 +00:00
- MOLECULE_DISTRO: ubuntu1804
2018-12-17 12:50:15 +00:00
- MOLECULE_DISTRO: ubuntu1604
2020-05-15 20:41:39 +00:00
- MOLECULE_DISTRO: debian10
2018-12-17 12:50:15 +00:00
- MOLECULE_DISTRO: debian9
2017-06-02 10:52:15 +00:00
2018-12-17 12:50:15 +00:00
install:
# Install test dependencies.
2020-05-15 20:41:39 +00:00
- pip install molecule yamllint ansible-lint docker
2018-12-17 12:50:15 +00:00
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/