aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2017-04-07 23:24:34 -0400
committerLarry Smith Jr <mrlesmithjr@gmail.com>2017-04-07 23:24:34 -0400
commitdcb10e24d902f6d20c811b0f6084b27a15cf3748 (patch)
tree323b1c79d6eb418978872aeb4db9ea173246133b
parentb82d79a58aec82d4287f105843b35d5c7a242882 (diff)
downloadansible-rabbitmq-dcb10e24d902f6d20c811b0f6084b27a15cf3748.tar.gz
ansible-rabbitmq-dcb10e24d902f6d20c811b0f6084b27a15cf3748.tar.zst
ansible-rabbitmq-dcb10e24d902f6d20c811b0f6084b27a15cf3748.zip
Added Travis tests
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
-rw-r--r--.travis.yml29
-rw-r--r--README.md5
-rw-r--r--tests/inventory1
-rw-r--r--tests/test.yml5
4 files changed, 40 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..36bbf62
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,29 @@
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
18 # Check ansible version
19 - ansible --version
20
21 # Create ansible.cfg with correct roles_path
22 - printf '[defaults]\nroles_path=../' >ansible.cfg
23
24script:
25 # Basic role syntax check
26 - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
27
28notifications:
29 webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file
diff --git a/README.md b/README.md
index e416fc5..99c019d 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,11 @@ Role Name
3 3
4Installs rabbitmq https://www.rabbitmq.com/ (Configurable...HA and Clustering ready) 4Installs rabbitmq https://www.rabbitmq.com/ (Configurable...HA and Clustering ready)
5 5
6Build Status
7------------
8
9[![Build Status](https://travis-ci.org/mrlesmithjr/ansible-rabbitmq.svg?branch=master)](https://travis-ci.org/mrlesmithjr/ansible-rabbitmq)
10
6Requirements 11Requirements
7------------ 12------------
8 13
diff --git a/tests/inventory b/tests/inventory
new file mode 100644
index 0000000..d18580b
--- /dev/null
+++ b/tests/inventory
@@ -0,0 +1 @@
localhost \ No newline at end of file
diff --git a/tests/test.yml b/tests/test.yml
new file mode 100644
index 0000000..9b96df5
--- /dev/null
+++ b/tests/test.yml
@@ -0,0 +1,5 @@
1---
2- hosts: localhost
3 remote_user: root
4 roles:
5 - ansible-rabbitmq \ No newline at end of file