You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
741 B
39 lines
741 B
---
|
|
dist: bionic
|
|
language: python
|
|
python: "3.8"
|
|
|
|
# Use the new container infrastructure
|
|
sudo: false
|
|
|
|
env:
|
|
global:
|
|
- ROLE_NAME: nginx
|
|
matrix:
|
|
- MOLECULE_DISTRIBUTION: ubuntu18
|
|
- MOLECULE_DISTRIBUTION: ubuntu20
|
|
- MOLECULE_DISTRIBUTION: debian8
|
|
- MOLECULE_DISTRIBUTION: debian9
|
|
- MOLECULE_DISTRIBUTION: debian10
|
|
# Install ansible
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-pip
|
|
|
|
install:
|
|
- mv "$PWD" "${PWD%/*}/$ROLE_NAME"
|
|
# Install ansible
|
|
- pip install -r requirements.txt
|
|
|
|
# Check ansible version
|
|
- ansible --version
|
|
|
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
|
|
|
script:
|
|
# Basic role syntax check
|
|
- molecule test
|
|
|
|
notifications:
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
|
|