forked from sdarwin/Ansible-Nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 1.73 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
55
56
57
58
59
60
61
---
dist: bionic
language: python
services: docker
env:
global:
- ROLE_NAME: nagios
matrix:
- MOLECULE_DISTRO: centos8
MOLECULE_DOCKER_COMMAND: /usr/sbin/init
- MOLECULE_DISTRO: centos7
MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd
# - MOLECULE_DISTRO: centos6
# MOLECULE_DOCKER_COMMAND: /sbin/init
- MOLECULE_DISTRO: ubuntu2004
MOLECULE_DOCKER_COMMAND: /usr/sbin/init
- MOLECULE_DISTRO: ubuntu1804
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: debian10
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: debian9
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
install:
# Install test dependencies.
- sudo apt-get install -y python3-pip python3-setuptools
- sudo pip3 install ansible docker molecule yamllint ansible-lint molecule-docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv Ansible-${ROLE_NAME^} sdarwin.$ROLE_NAME
- cd sdarwin.$ROLE_NAME
script:
# Run tests.
- molecule --debug dependency
- molecule --debug lint
- molecule --debug cleanup
- molecule --debug destroy
- molecule --debug syntax
- molecule --debug create
- molecule --debug prepare
- travis_wait 30 molecule --debug converge
- molecule --debug idempotence
# molecule side_effect does not exist
# - molecule --debug side_effect
- molecule --debug verify
- molecule --debug cleanup
- molecule --debug destroy
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
# re-run travis