Rheinwerk/ansible-role-sshd_trusted_user_ca_setup:.travis.yml@6999ea8
---
language: python
python:
- "2.7"
- "3.7"
- "3.8"
env:
- ANSIBLE_PIP='ansible'
- ANSIBLE_PIP='ansible==2.8.*'
- ANSIBLE_PIP='ansible==2.9.*'
dist: bionic
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install "$ANSIBLE_PIP"
- pip install yamllint
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
- "find . -name '*.yml' -print0 | xargs -0 yamllint -c galaxy-yamllint.yaml"
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
- cd tests; ./run_tests.sh
- ls -l /etc/ssh/
- tail /etc/ssh/sshd_config
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
Build Config
{
"go": [
"1.6.2",
"tip"
],
"sudo": false,
"script": "go test -v $(go list ./... | grep -v /vendor/)",
"language": "go"
}