test: add travis ci

This commit is contained in:
Adrien Waksberg 2019-02-09 08:51:26 +01:00
parent 252f7ea6d7
commit 4a5a1aad1a
4 changed files with 32 additions and 2 deletions

28
.travis.yml Normal file
View file

@ -0,0 +1,28 @@
---
sudo: required
language: ruby
env:
- ANSIBLE_VERSION=2.5
- ANSIBLE_VERSION=2.6
- ANSIBLE_VERSION=2.7
services:
- docker
before_install:
- bundle install
- sudo pip install --upgrade pip
- sudo pip install yamllint
- sudo pip install ansible-lint
- git clone https://github.com/ansible/galaxy-lint-rules.git
script:
- kitchen conv default-debian-9
- kitchen conv default-debian-9 | grep changed=0
- kitchen verify default-debian-9
- ansible-lint -r galaxy-lint-rules/rules .
- yamllint .
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View file

@ -6,6 +6,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased] ## [Unreleased]
- fix: install python-requests for backend - fix: install python-requests for backend
- fix: install build-essential for agent - fix: install build-essential for agent
- test: add travis ci
## [1.0.0] - 2019-02-06 ## [1.0.0] - 2019-02-06
- first version - first version

View file

@ -1,12 +1,13 @@
# Ansible role: Sensu # Ansible role: Sensu
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-sensu/releases) [![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-sensu/releases)
[![Build Status](https://travis-ci.org/nishiki/ansible-role-sensu.svg?branch=master)](https://travis-ci.org/nishiki/ansible-role-sensu)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-sensu/src/branch/master/LICENSE) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-sensu/src/branch/master/LICENSE)
Install and configure sensu-go backend and agent Install and configure sensu-go backend and agent
## Requirements ## Requirements
* Ansible >= 2.7 * Ansible >= 2.5
* Debian Stretch * Debian Stretch
## Role variables ## Role variables

View file

@ -5,7 +5,7 @@ galaxy_info:
company: Adrien Waksberg company: Adrien Waksberg
description: Install and configure sensu-go description: Install and configure sensu-go
license: Apache2 license: Apache2
min_ansible_version: 2.7 min_ansible_version: 2.5
platforms: platforms:
- name: Debian - name: Debian