Skip to content

Commit 5a7f269

Browse files
author
Gustavo Muniz do Carmo
committed
trigger docker_compose role build
1 parent c4aa8f2 commit 5a7f269

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ addons:
1414

1515
install:
1616
- pip install ansible
17+
- gem install travis
1718

1819
before_script:
1920
- docker run --name xenial -d codeyourinfra/python3:xenial
@@ -26,5 +27,10 @@ after_script:
2627
- docker stop xenial bionic
2728
- docker rm xenial bionic
2829

30+
after_success:
31+
- curl -LO https://raw.github.com/stephanmg/travis-dependent-builds/master/trigger.sh
32+
- chmod +x trigger.sh
33+
- ./trigger.sh codeyourinfra docker_compose master $TRAVIS_GITHUB_TOKEN
34+
2935
notifications:
3036
webhooks: https://galaxy.ansible.com/api/v1/notifications/

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub release](https://img.shields.io/github/release/codeyourinfra/docker.svg)]() [![Build status](https://travis-ci.org/codeyourinfra/docker.svg?branch=master)](https://travis-ci.org/codeyourinfra/docker)
44

5-
Ansible role to install Docker.
5+
Ansible role to install [Docker](https://www.docker.com).
66

77
## Example Playbook
88

@@ -19,6 +19,8 @@ The role requires the *ansible_distribution_release* variable, obtained through
1919
2020
The build process is performed in [Travis CI](https://travis-ci.org/codeyourinfra/docker). During the build, the role is tested by using [Ubuntu Docker images with Python 3](https://hub.docker.com/r/codeyourinfra/python3).
2121
22+
If the build is succeeded, dependent roles may have also its builds triggered, thanks to the [travis-dependent-builds project](https://github.com/stephanmg/travis-dependent-builds). One example is the [Codeyourinfra docker-compose Ansible role](https://galaxy.ansible.com/codeyourinfra/docker_compose).
23+
2224
## Author Information
2325
2426
[@gustavomcarmo](https://github.com/gustavomcarmo) is a contributor of [Codeyourinfra](https://github.com/codeyourinfra). Get on board too! :)

0 commit comments

Comments
 (0)