From 7a910c57e930def0c9a41bb1e7982cbd5af912e9 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 27 Oct 2020 16:27:28 +0100 Subject: [PATCH] Change to travis-ci.com --- .travis.yml | 35 +++++++++++++++++------------------ README.md | 2 +- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4dc7895..d1f8ecc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,27 @@ +--- +# OS Details +os: linux language: python -python: "3.8" +python: '3.8' -# Use the new container infrastructure -sudo: false - -# Install ansible -addons: - apt: - packages: - - python-pip +cache: + pip: true +# Install ansible and ansible-lint install: - # Install ansible - pip install ansible + - pip install ansible-lint - # Check ansible version - - ansible --version - - # Create ansible.cfg with correct roles_path - - printf '[defaults]\nroles_path=../' >ansible.cfg - +# 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: - # Basic role syntax check - - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + - 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/roles-ansible/role-ranger/actions\n\n\n\n\n\n" notifications: + email: + on_success: never + on_failure: always webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/README.md b/README.md index ee14bab..b4c0e29 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ If you want to find out more about our tests, please have a look at the github m | test status | Github Marketplace | | :--------- | :---------------- | -| [![Travis Build Status](https://travis-ci.org/roles-ansible/ansible_role_base.svg?branch=master)](https://travis-ci.org/roles-ansible/ansible_role_base) | [.travis.yml](https://github.com/roles-ansible/ansible_role_base/blob/master/.travis.yml) | +| [![Travis Build Status](https://travis-ci.com/roles-ansible/ansible_role_base.svg?branch=master)](https://travis-ci.com/roles-ansible/ansible_role_base) | [.travis.yml](https://github.com/roles-ansible/ansible_role_base/blob/master/.travis.yml) | ||| | [![Ansible Lint check](https://github.com/roles-ansible/ansible_role_base/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/roles-ansible/ansible_role_base/actions?query=workflow%3A%22Ansible+Lint+check%22) | [ansible-lint action](https://github.com/marketplace/actions/ansible-lint) | [![Ansible check debian:stable](https://github.com/roles-ansible/ansible_role_base/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/roles-ansible/ansible_role_base/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) | [ansible test with debian stable](https://github.com/marketplace/actions/check-ansible-debian-stable) |