test: add tests with travis-ci
This commit is contained in:
parent
81dbd84f8a
commit
219dcc5c19
4 changed files with 32 additions and 1 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
|
||||
- kitchen conv | grep changed=0
|
||||
- kitchen verify
|
||||
- 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: 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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# Ansible role: MariaDB
|
||||
[](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/releases)
|
||||
[](https://travis-ci.org/nishiki/ansible-role-mariadb)
|
||||
[](https://git.yaegashi.fr/nishiki/ansible-role-mariadb/src/branch/master/LICENSE)
|
||||
|
||||
Install and configure MariaDB
|
||||
|
|
|
@ -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: []
|
||||
|
|
Loading…
Add table
Reference in a new issue