2016-09-29 11:03:13 -05:00
|
|
|
---
|
2018-09-30 20:23:32 -05:00
|
|
|
language: python
|
2016-09-29 11:03:13 -05:00
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
2018-09-30 20:23:32 -05:00
|
|
|
global:
|
|
|
|
- ROLE_NAME: postgresql
|
|
|
|
matrix:
|
|
|
|
- MOLECULE_DISTRO: centos7
|
2020-03-04 17:37:56 +01:00
|
|
|
- MOLECULE_DISTRO: centos8
|
2019-11-08 16:12:29 -06:00
|
|
|
- MOLECULE_DISTRO: fedora31
|
2020-03-20 10:55:20 -05:00
|
|
|
- MOLECULE_DISTRO: ubuntu2004
|
2018-09-30 20:23:32 -05:00
|
|
|
- MOLECULE_DISTRO: ubuntu1804
|
2019-05-07 10:37:13 +02:00
|
|
|
- MOLECULE_DISTRO: debian10
|
2016-09-29 11:03:13 -05:00
|
|
|
|
2018-09-30 20:23:32 -05:00
|
|
|
install:
|
|
|
|
# Install test dependencies.
|
2020-02-20 14:24:17 -06:00
|
|
|
- pip install molecule yamllint ansible-lint docker
|
2016-09-29 11:03:13 -05:00
|
|
|
|
2018-09-30 20:23:32 -05: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 11:03:13 -05:00
|
|
|
|
2018-09-30 20:23:32 -05:00
|
|
|
script:
|
2017-04-02 09:56:00 -05:00
|
|
|
# Run tests.
|
2018-09-30 20:23:32 -05:00
|
|
|
- molecule test
|
2016-09-29 12:36:57 -05:00
|
|
|
|
2016-09-29 11:03:13 -05:00
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|