test: add tests with travis-ci

This commit is contained in:
Adrien Waksberg 2019-03-16 09:41:05 +01:00
parent 81dbd84f8a
commit 219dcc5c19
4 changed files with 32 additions and 1 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
- kitchen conv | grep changed=0
- kitchen verify
- 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]
- fix: add client-server option in default configuration
- fix: install python-mysqldb package
- test: add tests with travis-ci
## [v1.0.0] - 2019-02-23
- first version

View file

@ -1,5 +1,6 @@
# Ansible role: MariaDB
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/releases)
[![Build Status](https://travis-ci.org/nishiki/ansible-role-mariadb.svg?branch=master)](https://travis-ci.org/nishiki/ansible-role-mariadb)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/src/branch/master/LICENSE)
Install and configure MariaDB

View file

@ -3,7 +3,7 @@ galaxy_info:
role_name: mariadb
author: Adrien Waksberg
company: Adrien Waksberg
description: Install and configure mysql
description: Install and configure mariadb
license: Apache2
min_ansible_version: 2.7
@ -16,5 +16,6 @@ galaxy_info:
- database
- sql
- mysql
- mariadb
dependencies: []