Improve CI
This commit is contained in:
parent
d6375c8967
commit
fe1c409165
19
.travis.yml
19
.travis.yml
|
|
@ -11,6 +11,14 @@ env:
|
||||||
- MOLECULE_DISTRO: ubuntu-18.04
|
- MOLECULE_DISTRO: ubuntu-18.04
|
||||||
- MOLECULE_DISTRO: ubuntu-20.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:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pre-commit
|
- $HOME/.cache/pre-commit
|
||||||
|
|
@ -18,18 +26,13 @@ cache:
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: lint with pre-commit
|
- name: lint with pre-commit
|
||||||
|
install: skip
|
||||||
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
- pip3 install pre-commit
|
- pip install pre-commit
|
||||||
- pre-commit run -c .travis-pre-commit-config.yaml -a
|
- pre-commit run -c .travis-pre-commit-config.yaml -a
|
||||||
|
|
||||||
script:
|
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=mitogen_linear
|
||||||
- export ANSIBLE_STRATEGY_PLUGINS=${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ansible_mitogen/plugins/strategy
|
- export ANSIBLE_STRATEGY_PLUGINS=${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ansible_mitogen/plugins/strategy
|
||||||
- molecule --version
|
- molecule --version
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# Ansible role: MariaDB
|
# Ansible role: MariaDB
|
||||||
|
|
||||||
|
## test
|
||||||
|
|
||||||
[](https://travis-ci.org/fauust/ansible-role-mariadb)
|
[](https://travis-ci.org/fauust/ansible-role-mariadb)
|
||||||
|
|
||||||
Install and configure MariaDB Server on Debian/Ubuntu.
|
Install and configure MariaDB Server on Debian/Ubuntu.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue