forked from geerlingguy/ansible-role-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (51 loc) · 1.6 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
---
services: docker
env:
# Test source install on latest supported OSes.
- distro: centos7
playbook: test-source.yml
GIT_VERSION: 2.9.3
- distro: fedora24
playbook: test-source.yml
GIT_VERSION: 2.9.3
- distro: ubuntu1604
playbook: test-source.yml
GIT_VERSION: 2.9.3
# Test package install on all supported OSes.
- distro: centos7
playbook: test.yml
GIT_VERSION: 1.8.3.1
- distro: centos6
playbook: test.yml
GIT_VERSION: 1.7.1
- distro: fedora24
playbook: test.yml
GIT_VERSION: 2.7.5
- distro: ubuntu1604
playbook: test.yml
GIT_VERSION: 2.7.4
- distro: ubuntu1404
playbook: test.yml
GIT_VERSION: 1.9.1
- distro: ubuntu1204
playbook: test.yml
GIT_VERSION: 1.7.9.5
- distro: debian8
playbook: test.yml
GIT_VERSION: 2.1.4
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
# Ensure Git is installed and at the right version.
- 'docker exec --tty ${container_id} env TERM=xterm which git'
- 'docker exec --tty ${container_id} env TERM=xterm test -x /usr/bin/git'
- 'docker exec --tty ${container_id} env TERM=xterm git --version'
- 'docker exec --tty ${container_id} env TERM=xterm /usr/bin/git --version | grep -qF "$GIT_VERSION"'
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/