test: add travis ci
This commit is contained in:
parent
252f7ea6d7
commit
4a5a1aad1a
4 changed files with 32 additions and 2 deletions
28
.travis.yml
Normal file
28
.travis.yml
Normal 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/
|
|
@ -6,6 +6,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|||
## [Unreleased]
|
||||
- fix: install python-requests for backend
|
||||
- fix: install build-essential for agent
|
||||
- test: add travis ci
|
||||
|
||||
## [1.0.0] - 2019-02-06
|
||||
- first version
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
# Ansible role: Sensu
|
||||
[](https://git.yaegashi.fr/nishiki/ansible-role-sensu/releases)
|
||||
[](https://travis-ci.org/nishiki/ansible-role-sensu)
|
||||
[](https://git.yaegashi.fr/nishiki/ansible-role-sensu/src/branch/master/LICENSE)
|
||||
|
||||
Install and configure sensu-go backend and agent
|
||||
|
||||
## Requirements
|
||||
|
||||
* Ansible >= 2.7
|
||||
* Ansible >= 2.5
|
||||
* Debian Stretch
|
||||
|
||||
## Role variables
|
||||
|
|
|
@ -5,7 +5,7 @@ galaxy_info:
|
|||
company: Adrien Waksberg
|
||||
description: Install and configure sensu-go
|
||||
license: Apache2
|
||||
min_ansible_version: 2.7
|
||||
min_ansible_version: 2.5
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
|
|
Loading…
Add table
Reference in a new issue