From 7f71fce68e7ac69532d1736af6304f38a72561d6 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Wed, 7 Feb 2018 09:56:52 -0400 Subject: [PATCH] Add CI Tests (#5) * Add CI testing. * Update readme --- .gitignore | 2 ++ .travis.yml | 14 ++++++++++++++ README.md | 4 ++-- tests/test.yml | 5 +++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 tests/test.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c08e36 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +tests/test.sh +*.retry diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..eacd024 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +--- +services: docker + +env: +# - distro: centos7 + - distro: ubuntu1604 + +script: + # Download test shim. + - wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/ + - chmod +x ${PWD}/tests/test.sh + + # Run tests. + - ${PWD}/tests/test.sh diff --git a/README.md b/README.md index 70fca6b..e1c3b9b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ansible Role: Tomcat 8 +# Ansible Role: Tomcat 8 [![Build Status](https://travis-ci.org/Islandora-Devops/ansible-role-tomcat8.svg?branch=master)](https://travis-ci.org/Islandora-Devops/ansible-role-tomcat8) An Ansible role that installs Tomcat 8 on: @@ -59,4 +59,4 @@ tomcat8_server_group: tomcat8 ## License -MIT \ No newline at end of file +MIT diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..3646ff4 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: all + + roles: + - role_under_test