parent
d61b4d51fd
commit
d6a3c51493
68
.travis.yml
68
.travis.yml
|
@ -1,35 +1,37 @@
|
||||||
---
|
---
|
||||||
language: python
|
language: python
|
||||||
services: docker
|
services: docker
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- ROLE_NAME: cloudflare-acme
|
||||||
|
matrix:
|
||||||
|
- MOLECULE_DISTRO: centos7
|
||||||
|
- MOLECULE_DISTRO: centos8
|
||||||
|
- MOLECULE_DISTRO: ubuntu1804
|
||||||
|
- MOLECULE_DISTRO: ubuntu1604
|
||||||
|
- MOLECULE_DISTRO: debian9
|
||||||
|
- MOLECULE_DISTRO: debian10
|
||||||
|
|
||||||
env:
|
install:
|
||||||
global:
|
# Install test dependencies.
|
||||||
- ROLE_NAME: cloudflare-acme
|
- pip install molecule docker==4.2.2 testinfra ansible-lint flake8 yamllint
|
||||||
matrix:
|
|
||||||
- MOLECULE_DISTRO: centos7
|
before_script:
|
||||||
- MOLECULE_DISTRO: centos8
|
# Use actual Ansible Galaxy role name for the project directory.
|
||||||
- MOLECULE_DISTRO: ubuntu1804
|
- cd ../
|
||||||
- MOLECULE_DISTRO: ubuntu1604
|
- mv ansible-$ROLE_NAME $ROLE_NAME
|
||||||
- MOLECULE_DISTRO: debian9
|
- cd $ROLE_NAME
|
||||||
- MOLECULE_DISTRO: debian10
|
|
||||||
|
script:
|
||||||
install:
|
- docker --version
|
||||||
# Install test dependencies.
|
- molecule --version
|
||||||
- pip install molecule docker testinfra ansible-lint flake8 yamllint
|
- ansible --version
|
||||||
|
- molecule test
|
||||||
before_script:
|
|
||||||
# Use actual Ansible Galaxy role name for the project directory.
|
notifications:
|
||||||
- cd ../
|
webhooks:
|
||||||
- mv ansible-$ROLE_NAME $ROLE_NAME
|
urls:
|
||||||
- cd $ROLE_NAME
|
- "https://galaxy.ansible.com/api/v1/notifications/"
|
||||||
|
on_success: change
|
||||||
script:
|
|
||||||
- molecule --version
|
|
||||||
- ansible --version
|
|
||||||
- molecule test
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
webhooks:
|
|
||||||
urls:
|
|
||||||
- "https://galaxy.ansible.com/api/v1/notifications/"
|
|
||||||
on_success: change
|
|
Loading…
Reference in New Issue