From 3587de51e090ce26261ebacc4e326276eff67fe4 Mon Sep 17 00:00:00 2001 From: memiah-steve Date: Thu, 5 Apr 2018 14:27:55 +0100 Subject: [PATCH] Add travis file. --- .gitignore | 1 + .travis.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0fdac42 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + + # Install required dependencies. + - ansible-galaxy install memiah.ssh-config + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/