From 1f50cabcaf94e46b55ddc86475324d102f0cb277 Mon Sep 17 00:00:00 2001 From: Anton Strogonoff Date: Mon, 7 Jan 2019 04:56:17 +0800 Subject: [PATCH] chore: Trigger Open Hub build from this site build https://github.com/riboseinc/jekyll-theme-open-project/issues/40 --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5e75ba0e..2c2e05a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,3 +35,14 @@ after_deploy: - aws configure set preview.cloudfront true - test $TRAVIS_BRANCH = "master" && aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*" - test $TRAVIS_BRANCH = "staging" && aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_STAGING_DISTRIBUTION_ID --paths "/*" +jobs: + include: + - stage: trigger downstream + jdk: oraclejdk8 + script: | + echo "TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST" + if [[ ($TRAVIS_BRANCH == master) && + ($TRAVIS_PULL_REQUEST == false) ]] ; then + curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh + sh trigger-travis.sh riboseinc open.ribose.com $TRAVIS_ACCESS_TOKEN + fi