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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/.travis.yml

39 lines
775 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 ansible molecule docker testinfra pytest pytest-xdist
# 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/