From e4ab64299c012f6fefe205cd40d9915b01134869 Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Fri, 13 Sep 2013 10:09:20 -0700 Subject: [PATCH] Update .travis.yml trigger only if the repo is blessed one [skip ci] --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e8377543..eea8a4fc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,10 +87,10 @@ install: fi before_script: -- if [[ $TRIGGER_BB == TRUE ]]; then +- if [[ $LEANREPO == BLESSED && $TRIGGER_BB == TRUE ]]; then git push -q https://soonhok:${BB_TOKEN}@bitbucket.org/soonhok/lean.git +master; fi -- if [[ $TRIGGER_OSX == TRUE ]]; then +- if [[ $LEANREPO == BLESSED && $TRIGGER_OSX == TRUE ]]; then MSG=`git log --pretty=oneline --abbrev-commit -n 1 | cut -d ' ' -f 2-`; cp .travis.yml /tmp/.travis.temp.yml; cp .travis.osx.yml .travis.yml; @@ -102,7 +102,7 @@ before_script: mv /tmp/.travis.temp.yml .travis.yml; git reset --hard HEAD~; fi -- if [[ $TRIGGER_WINDOWS == TRUE ]]; then +- if [[ $LEANREPO == BLESSED && $TRIGGER_WINDOWS == TRUE ]]; then MSG=`git log --pretty=oneline --abbrev-commit -n 1 | cut -d ' ' -f 2-`; cp .travis.yml /tmp/.travis.temp.yml; cp .travis.windows.yml .travis.yml;