-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (47 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# Thanks to geerlingguy!
language: python
services: docker
env:
global:
- ROLE_NAME: hugo
matrix:
# Local user install
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: centos8
- MOLECULE_DISTRO: debian10
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: fedora29
- MOLECULE_DISTRO: amazonlinux2
# Global install
- MOLECULE_DISTRO: centos7
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
- MOLECULE_DISTRO: centos8
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
- MOLECULE_DISTRO: debian10
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
- MOLECULE_DISTRO: ubuntu1804
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
- MOLECULE_DISTRO: fedora29
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
- MOLECULE_DISTRO: amazonlinux2
MOLECULE_PREPARE_PLAYBOOOK: prepare-global.yml
MOLECULE_PLAYBOOK: playbook-global.yml
install:
# Install test dependencies.
- pip install molecule==2.22 docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME xanmanning.$ROLE_NAME
- cd xanmanning.$ROLE_NAME
script:
# Run tests.
- molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/