From 219dcc5c19d55e5b777f707d4c6736204b33c61b Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sat, 16 Mar 2019 09:41:05 +0100 Subject: [PATCH] test: add tests with travis-ci --- .travis.yml | 28 ++++++++++++++++++++++++++++ CHANGELOG.md | 1 + README.md | 1 + meta/main.yml | 3 ++- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4060bbd --- /dev/null +++ b/.travis.yml @@ -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/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 1592646..d5fd316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index f945e26..c5c4bc6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/meta/main.yml b/meta/main.yml index ce19906..2ec6cdf 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -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: []