-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
65 lines (55 loc) · 1.79 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
---
###
### Travis settings
###
sudo: required
services:
- docker
env:
global:
- ANSIBLE_VERSION=2.5
jobs:
include:
###
### Stage 1: Static file analysis
###
- stage: static file analysis
install:
- sudo pip install yamllint
script:
- make lint
###
### Stage 2: Run Ansible
###
# Job 1: Ansible 2.5
- stage: test ansible
install:
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get update; then break; else i=$((i+1)); fi done
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce; then break; else i=$((i+1)); fi done
env:
- ANSIBLE_VERSION=2.5
script:
- make test ANSIBLE_VERSION=${ANSIBLE_VERSION}
# Job 2: Ansible 2.6
- stage: test ansible
install:
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get update; then break; else i=$((i+1)); fi done
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce; then break; else i=$((i+1)); fi done
env:
- ANSIBLE_VERSION=2.6
script:
- make test ANSIBLE_VERSION=${ANSIBLE_VERSION}
# Job 3: Ansible latest
- stage: test ansible
install:
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get update; then break; else i=$((i+1)); fi done
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce; then break; else i=$((i+1)); fi done
env:
- ANSIBLE_VERSION=latest
script:
- make test ANSIBLE_VERSION=${ANSIBLE_VERSION}
###
### Notify Ansible Galaxy to pull changes
###
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/