summaryrefslogtreecommitdiff
path: root/roles/docker.ubuntu/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/docker.ubuntu/.travis.yml')
-rw-r--r--roles/docker.ubuntu/.travis.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/docker.ubuntu/.travis.yml b/roles/docker.ubuntu/.travis.yml
new file mode 100644
index 0000000..d3fff98
--- /dev/null
+++ b/roles/docker.ubuntu/.travis.yml
@@ -0,0 +1,19 @@
+---
+language: python
+python: "2.7"
+env:
+ - ANSIBLE_VERSION='ansible<2'
+ - ANSIBLE_VERSION='ansible>2'
+
+before_install:
+ - sudo apt-get update -qq
+ #- sudo apt-get install -qq python-apt python-pycurl
+install:
+ # Install Ansible.
+ - sudo pip install $ANSIBLE_VERSION
+script:
+ - ansible --version
+ - export ANSIBLE_ROLES_PATH="../"
+# - echo localhost > inventory
+ - ansible-playbook -i hosts --syntax-check docker.yml
+ - ansible-playbook -i hosts --connection=local --sudo -vvvv docker.yml