Improve CI

This commit is contained in:
Faustin Lammler 2020-05-27 18:43:23 +02:00
parent d6375c8967
commit fe1c409165
No known key found for this signature in database
GPG Key ID: 390A2F27832A5C79
2 changed files with 13 additions and 8 deletions

View File

@ -11,6 +11,14 @@ env:
- MOLECULE_DISTRO: ubuntu-18.04
- MOLECULE_DISTRO: ubuntu-20.04
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.pdf)'
then
echo "Only doc files were updated, not running the CI."
exit
fi
cache:
directories:
- $HOME/.cache/pre-commit
@ -18,18 +26,13 @@ cache:
jobs:
include:
- name: lint with pre-commit
install: skip
before_install: skip
script:
- pip3 install pre-commit
- pip install pre-commit
- pre-commit run -c .travis-pre-commit-config.yaml -a
script:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.pdf)'
then
echo "Only doc files were updated, not running the CI."
exit
fi
- pip3 install -r requirements.txt
- export ANSIBLE_STRATEGY=mitogen_linear
- export ANSIBLE_STRATEGY_PLUGINS=${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ansible_mitogen/plugins/strategy
- molecule --version

View File

@ -1,5 +1,7 @@
# Ansible role: MariaDB
## test
[![travis build status](https://img.shields.io/travis/fauust/ansible-role-mariadb?logo=travis)](https://travis-ci.org/fauust/ansible-role-mariadb)
Install and configure MariaDB Server on Debian/Ubuntu.