mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-29 06:20:17 +01:00
Add Travis CI integration.
This commit is contained in:
parent
c9f5637003
commit
489dc306bb
3 changed files with 21 additions and 0 deletions
12
.travis.yml
Normal file
12
.travis.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
env:
|
||||
- SITE=test.yml
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
install:
|
||||
- pip install ansible==1.5.0
|
||||
script:
|
||||
- ansible-playbook -i tests/inventory tests/$SITE --syntax-check
|
||||
- ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
|
1
tests/inventory
Normal file
1
tests/inventory
Normal file
|
@ -0,0 +1 @@
|
|||
localhost
|
8
tests/test.yml
Normal file
8
tests/test.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- hosts: all
|
||||
vars_files:
|
||||
- '../vars/main.yml'
|
||||
tasks:
|
||||
- include: '../tasks/main.yml'
|
||||
handlers:
|
||||
- include: '../handlers/main.yml'
|
Loading…
Reference in a new issue