forked from ansistrano/rollback
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (24 loc) · 878 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
---
sudo: required
dist: trusty
matrix:
import_tasks:
- env: ANSIBLE_VERSION=2.4.6
- env: ANSIBLE_VERSION=2.5.10
- env: ANSIBLE_VERSION=2.6.6
- env: ANSIBLE_VERSION=2.7.1
before_install:
- sudo apt-get -y install software-properties-common
- sudo apt-get -y install python-pip
- sudo pip install ansible==$ANSIBLE_VERSION
- ansible --version
# We download the latest deploy stable tag
- sudo ansible-galaxy install -c ansistrano.deploy
script:
- echo localhost > inventory
- ansible-playbook -i inventory test/test.yml --syntax-check
- ansible-playbook -i inventory --connection=local --become -v test/deploy.yml
- ansible-playbook -i inventory --connection=local --become -v test/deploy.yml
- ansible-playbook -i inventory --connection=local --become -v test/test.yml
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/