2016-09-29 12:03:13 -04:00
|
|
|
---
|
2018-09-30 21:23:32 -04:00
|
|
|
language: python
|
2016-09-29 12:03:13 -04:00
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
2018-09-30 21:23:32 -04:00
|
|
|
global:
|
|
|
|
- ROLE_NAME: postgresql
|
|
|
|
matrix:
|
|
|
|
- MOLECULE_DISTRO: centos7
|
|
|
|
- MOLECULE_DISTRO: ubuntu1804
|
|
|
|
- MOLECULE_DISTRO: ubuntu1604
|
2019-05-07 04:37:13 -04:00
|
|
|
- MOLECULE_DISTRO: debian10
|
2018-09-30 21:23:32 -04:00
|
|
|
- MOLECULE_DISTRO: debian9
|
2016-09-29 12:03:13 -04:00
|
|
|
|
2018-09-30 21:23:32 -04:00
|
|
|
install:
|
|
|
|
# Install test dependencies.
|
|
|
|
- pip install molecule docker
|
2016-09-29 12:03:13 -04:00
|
|
|
|
2018-09-30 21:23:32 -04: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
|
2016-09-29 12:03:13 -04:00
|
|
|
|
2018-09-30 21:23:32 -04:00
|
|
|
script:
|
2017-04-02 10:56:00 -04:00
|
|
|
# Run tests.
|
2018-09-30 21:23:32 -04:00
|
|
|
- molecule test
|
2016-09-29 13:36:57 -04:00
|
|
|
|
2016-09-29 12:03:13 -04:00
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|