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
|
2019-11-08 17:12:29 -05:00
|
|
|
- MOLECULE_DISTRO: fedora31
|
2018-09-30 21:23:32 -04:00
|
|
|
- MOLECULE_DISTRO: ubuntu1804
|
2019-05-07 04:37:13 -04:00
|
|
|
- MOLECULE_DISTRO: debian10
|
2016-09-29 12:03:13 -04:00
|
|
|
|
2018-09-30 21:23:32 -04:00
|
|
|
install:
|
|
|
|
# Install test dependencies.
|
2020-02-20 15:24:17 -05:00
|
|
|
- pip install molecule yamllint ansible-lint 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/
|