-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
33 lines (26 loc) · 913 Bytes
/
.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
---
language: generic
# Use the new container infrastructure
sudo: required
services:
- docker
env:
- ANSIBLE_VERSION: 2.2
- ANSIBLE_VERSION: 2.3
- ANSIBLE_VERSION: 2.4
- ANSIBLE_VERSION: 2.5
- ANSIBLE_VERSION: 2.6
- ANSIBLE_VERSION: 2.7
install:
# Pull container
- sudo docker pull kitpages/docker-ansible:$ANSIBLE_VERSION
# Check ansible version
- sudo docker run -it --rm -v $(pwd):/ansible -w /ansible kitpages/docker-ansible:$ANSIBLE_VERSION ansible-playbook --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- sudo docker run -it --rm -v $(pwd):/ansible-traefik -w /ansible-traefik kitpages/docker-ansible:$ANSIBLE_VERSION ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email: false