Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Commit ab0567a

Browse files
committed
Fixes #16 - Add support for Travis CI linting
1 parent cb9455e commit ab0567a

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
language: python
3+
python: "2.7"
4+
5+
before_install:
6+
# Make sure everything's up to date.
7+
- sudo apt-get update -qq
8+
9+
install:
10+
# Install Ansible.
11+
- pip install ansible
12+
13+
# Add ansible.cfg to pick up roles path.
14+
- echo "[default]" > ansible.cfg
15+
- echo "roles_path = ../" >> ansible.cfg
16+
- git clone https://github.com/vmware/ansible-role-vcenter.git
17+
18+
script:
19+
# Test syntax on playbook
20+
- ansible-playbook -i inventory test.yml --syntax-check

inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- ansible-role-vcenter

0 commit comments

Comments
 (0)