This repository has been archived by the owner on May 28, 2021. It is now read-only.
forked from geerlingguy/ansible-role-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
88 lines (75 loc) · 2.06 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
---
services: docker
env:
# tests/test.yml
- distro: centos7
playbook: test.yml
prefix: ''
http_port: 8080
- distro: fedora24
site: test.yml
prefix: ''
http_port: 8080
- distro: ubuntu1604
playbook: test.yml
prefix: ''
http_port: 8080
- distro: ubuntu1404
playbook: test.yml
prefix: ''
http_port: 8080
- distro: debian8
playbook: test.yml
prefix: ''
http_port: 8080
# tests/test-http-port.yml
- distro: ubuntu1604
playbook: test-http-port.yml
prefix: ''
http_port: 8081
# tests/test-prefix.yml
- distro: ubuntu1604
playbook: test-prefix.yml
prefix: jenkins
http_port: 8080
# tests/test-jenkins-version.yml
- distro: centos7
playbook: test-jenkins-version.yml
prefix: ''
http_port: 8080
- distro: ubuntu1604
playbook: test-jenkins-version.yml
prefix: ''
http_port: 8080
# tests/test-plugins.yml
- distro: ubuntu1604
playbook: test-plugins.yml
prefix: ''
http_port: 8080
# tests/test-plugins-with-home.yml
- distro: ubuntu1604
playbook: test-plugins-with-home.yml
prefix: ''
http_port: 8080
# tests/test-plugins-with-pinning.yml
- distro: ubuntu1604
playbook: test-plugins-with-pinning.yml
prefix: ''
http_port: 8080
script:
# Configure test script so we can run extra tests after playbook is run.
- export container_id=$(date +%s)
- export cleanup=false
# 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
# Make sure Jenkins is running.
- 'docker exec --tty ${container_id} env TERM=xterm curl http://localhost:$http_port/$prefix'
after_failure:
# Check what happened on systemd systems.
- 'docker exec --tty ${container_id} env TERM=xterm systemctl -l status jenkins.service'
- 'docker exec --tty ${container_id} env TERM=xterm journalctl -xe --no-pager'
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/