forked from smsearcy/ansible-role-bitbucket
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
24 lines (18 loc) · 700 Bytes
/
Copy path.travis.yml
File metadata and controls
24 lines (18 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
sudo: required
dist: trusty
language: generic
before_install:
- sudo apt-get install -y software-properties-common
- sudo apt-add-repository -y ppa:fkrull/deadsnakes-python2.7
- sudo apt-get update
- sudo apt-get -y install python2.7
- sudo apt-add-repository -y ppa:ansible/ansible
- sudo apt-get update
- sudo apt-get -y install ansible
install:
- git clone https://github.com/pantarei/ansible-role-java.git ../hswong3i.java
script:
- sudo ansible-playbook tests/test.yml -i tests/hosts --syntax-check
- sudo ansible-playbook tests/test.yml -i tests/hosts
- sudo ansible-playbook tests/test.yml -i tests/hosts | grep -q 'unreachable=0.*failed=0' && exit 0 || exit 1