travis: add ansible-galaxy integration

This instructs Travis to notify Galaxy when a build completes. Since 3.0
the ansible-galaxy has the ability to build and push roles from repos
with multiple roles.

Closes: https://github.com/ceph/ceph-ansible/issues/3165
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/3217/head
Sébastien Han 2018-10-30 12:18:16 +01:00
parent 49d4b65751
commit 9e87a5ae5e
1 changed files with 2 additions and 10 deletions

View File

@ -2,18 +2,10 @@ sudo: required
language: python
python:
- "3.6"
services:
- docker
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
install:
- pip install -r requirements.txt
before_script:
- ansible-playbook build/build.yml
script:
- docker container run --rm -it
-v /var/run/docker.sock:/var/run/docker.sock:ro
-v $(pwd):/role:ro
-e ANSIBLE_VERBOSITY=1
tecnativa/ansible-test-playground:lifecycle
create.yml destroy.yml
- ansible-playbook -i '127.0.0.1,' site.yml.sample --syntax-check --list-tasks -vv
- ansible-playbook -i '127.0.0.1,' site-docker.yml.sample --syntax-check --list-tasks -vv