forked from geerlingguy/ansible-for-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
110 lines (81 loc) · 2.28 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
services: docker
dist: focal
branches:
only:
- master
env:
- shell_script: collection.sh
# Run each test playbook in a separate environment.
- playbook: deployments.yml
distro: ubuntu2004
test_idempotence: false
# TODO: Not easy to test in CI at this time.
# - playbook: deployments-balancer.yml
# distro: ubuntu2004
- playbook: deployments-rolling.yml
distro: ubuntu2004
- playbook: docker.yml
distro: ubuntu2004
test_idempotence: false
- playbook: docker-flask.yml
distro: ubuntu2004
test_idempotence: false
- playbook: docker-hubot.yml
distro: ubuntu2004
test_idempotence: false
- playbook: drupal.yml
distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: dynamic-inventory.yml
# distro: ubuntu2004
- playbook: elk.yml
distro: ubuntu2004
- playbook: first-ansible-playbook.yml
distro: centos7
- playbook: galaxy-role-servers.yml
distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: gluster.yml
# distro: ubuntu2004
- playbook: https-self-signed.yml
distro: ubuntu2004
- playbook: https-nginx-proxy.yml
distro: debian10
- playbook: includes.yml
distro: ubuntu2004
- playbook: jenkins.yml
distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: kubernetes.yml
# distro: debian9
# TODO: Not easy to test in CI at this time.
# - playbook: lamp-infrastructure.yml
# distro: ubuntu2004
- shell_script: molecule.sh
- playbook: nodejs.yml
distro: centos7
- playbook: nodejs-role.yml
distro: centos7
- shell_script: orchestration.sh
- playbook: security.yml
distro: centos8
- playbook: solr.yml
distro: ubuntu2004
- playbook: test-plugin.yml
distro: centos7
script:
# Use test shim and run playbook if playbook is provided.
- |
if [ ! -z "$playbook" ]; then
# Download test shim.
wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/
chmod +x ${PWD}/tests/test.sh
# Run tests.
${PWD}/tests/test.sh
fi
# Run script directly if script is provided.
- |
if [ ! -z "$shell_script" ]; then
${PWD}/tests/${shell_script}
fi