From 8ec1a7fb0c4f20d92b059f5b005d0199e562934e Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 13:00:04 +0100 Subject: [PATCH 1/2] Add travis test --- .travis.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..608b0b4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +--- +# OS Details +os: linux +language: python +python: '3.8' + +cache: + pip: true + +# Install ansible and ansible-lint +install: + - pip install ansible + - pip install ansible-lint + +# testing galaxy install and ansible lint +# more advanced testing is currently handled with +# github actions. The gh-actions for our test are there: +# https://github.com/roles-ansible and are tagged +# with 'github-actions' --> https://github.com/search?q=topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories +script: + - ansible-galaxy install do1jlr.ranger + - ansible-lint . + - echo -e "\n\n\n\n\nWe use github actions for more detailed tests.\n\nMore details about that in our github repo at:\nhttps://github.com/chaos-bodensee/role-ranger/actions\n\n\n\n\n\n" + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ From 7371d040923ea0f711234473a0bf380969f7aa14 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 13:02:36 +0100 Subject: [PATCH 2/2] Add travis-ci bullet point --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f3409dc..edd2dd6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Ansible Galaxy](https://raw.githubusercontent.com/chaos-bodensee/role-ranger/master/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/ranger) +[![Build Status](https://travis-ci.org/chaos-bodensee/role-ranger.svg?branch=master)](https://travis-ci.org/chaos-bodensee/role-ranger) [![Ansible Lint check](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+Lint+check%22) [![Ansible check debian:stable](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) [![Ansible check debian:stable](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22)