aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-04-20 14:40:33 +0200
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-04-20 14:40:33 +0200
commitd213edd127a145821e419e80104a838da421e7ca (patch)
tree33c33a4560d7b3f55eaebaad6c107f5d01768f7c /.travis.yml
parentad5e125af59a34020943158999564af4f3a41a59 (diff)
downloadansible-kong-app-d213edd127a145821e419e80104a838da421e7ca.tar.gz
ansible-kong-app-d213edd127a145821e419e80104a838da421e7ca.tar.zst
ansible-kong-app-d213edd127a145821e419e80104a838da421e7ca.zip
add travis configuration and fix tests
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..812d0fe
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,32 @@
1---
2language: python
3python: "2.7"
4
5# Use the new container infrastructure
6sudo: false
7
8# Install ansible
9addons:
10 apt:
11 packages:
12 - python-pip
13
14install:
15 # Install ansible
16 - pip install ansible
17 - pip install ansible-lint
18
19 # Check ansible version
20 - ansible --version
21
22 # Create ansible.cfg with correct roles_path
23 - printf '[defaults]\nroles_path=../' >ansible.cfg
24
25script:
26 # Basic role syntax check
27 - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
28 - ansible-lint .
29 - ansible-playbook tests/test.yml -i tests/inventory -C -D
30
31notifications:
32 webhooks: https://galaxy.ansible.com/api/v1/notifications/