forked from babineaum/ansible-sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 792 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
---
language: python
python: "2.7"
env:
#- ANSIBLE_VERSION=1.4
#- ANSIBLE_VERSION=1.5
#- ANSIBLE_VERSION=1.6
#- ANSIBLE_VERSION=1.7
- ANSIBLE_VERSION=1.8
before_install:
- sudo apt-get update -qq
when: ansible_os_family == "DEBIAN"
- sudo apt-get install -qq python-apt python-pycurl
when: ansible_os_family == "DEBIAN"
- sudo yum update
when: ansible_os_family == "REDHAT"
- sudo yum install python-apt python-pycurl
when: ansible_os_family == "REDHAT"
install:
# Install Ansible.
- pip install ansible==$ANSIBLE_VERSION
script:
- ansible --version
- export ANSIBLE_ROLES_PATH="../"
- echo localhost > inventory
- ansible-playbook -i inventory --syntax-check sonar.yml
- ansible-playbook -i inventory --connection=local --sudo -vvvv sonar.yml