From 9e0fe8da3cd5d00e54d4a4ca8b77073dd6b10fc7 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Thu, 10 Nov 2016 15:07:20 +0100 Subject: Add Travis integration We can run simple tests in every PR, while triggering our internal CI tests on manually selected PRs. This is a bit better than the all-or-nothing we have today. Running `make ci` in Travis is the same as the Jenkins 'default' job. --- .travis.yml | 15 +++++++++++++++ README.md | 1 + requirements.txt | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 .travis.yml create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..001bfdc39 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +sudo: false + +language: python +python: + - "2.7" + +install: + - pip install -r requirements.txt + +script: + # TODO(rhcarvalho): check syntax of other important entrypoint playbooks + - ansible-playbook --syntax-check playbooks/byo/config.yml + # TODO(rhcarvalho): update make ci to pick up these tests + - nosetests --tests=test + - cd utils && make ci diff --git a/README.md b/README.md index 65ac13032..bb8f56824 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Join the chat at https://gitter.im/openshift/openshift-ansible](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/openshift/openshift-ansible) +[![Build Status](https://travis-ci.org/openshift/openshift-ansible.svg?branch=master)](https://travis-ci.org/openshift/openshift-ansible) # OpenShift Ansible diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..e55ef5f0b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +ansible>=2.1 +pyOpenSSL -- cgit v1.2.3