1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00
ansible_role_base/.travis.yml

29 lines
536 B
YAML
Raw Normal View History

2020-08-28 14:01:22 +02:00
language: python
python: "3.8"
2020-08-28 14:01:22 +02:00
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
2020-08-28 14:01:22 +02:00
install:
# Install ansible
2020-08-28 14:01:22 +02:00
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
2020-08-28 14:01:22 +02:00
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
2020-08-28 14:01:22 +02:00
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/