]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
travis: add ansible-galaxy integration
authorSébastien Han <seb@redhat.com>
Tue, 30 Oct 2018 11:18:16 +0000 (12:18 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 30 Oct 2018 12:45:30 +0000 (13:45 +0100)
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>
.travis.yml

index 74612221b4715d363bb3232e8ca899002236ad3d..e862e399dfecb11813a31526a31c810f123b0c2d 100644 (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
\ No newline at end of file