From 81b8d8cda4c5cfcc742e47c0ba7ce93c69c5b765 Mon Sep 17 00:00:00 2001 From: Paul Voss Date: Sun, 14 Aug 2016 19:12:14 +0200 Subject: [PATCH] added travis-ci example to README --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 155d499..3e79ce0 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Available operating systems: * fedora-24 * ubuntu-16.04 -## use the ansible image for playbooks +## run playbooks docker run -it --rm \ -w /site \ @@ -24,7 +24,7 @@ Available operating systems: Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't work. -## use the ansible image in drone builds +## run tests with drone.io build: image: chmuul/ansible:$$OS @@ -39,6 +39,26 @@ Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't wo - fedora-24 - ubuntu-16.04 +## run tests with travis-ci + + sudo: required + + env: + - OS: centos-7 + - OS: debian-8 + - OS: fedora-24 + - OS: ubuntu-16.04 + + services: + - docker + + before_install: + - docker pull chmuul/ansible:${OS} + + script: + - docker run -t -w /site -v $(pwd):/site chmuul/ansible:${OS} ansible-playbook -i tests/inventory tests/main.yml --syntax-check + - docker run -t -w /site -v $(pwd):/site chmuul/ansible:${OS} ansible-playbook -i tests/inventory tests/main.yml + ## references * [project on github](https://github.com/pauvos/ansible)