From 8eea303cab0e3fc7f17b0c3ecc4ef7dd91b653c5 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Wed, 19 Oct 2016 11:04:38 -0400 Subject: [PATCH] travis: notify if no casks modified --- ci/travis/helpers.sh | 6 +++++- ci/travis/script.sh | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/travis/helpers.sh b/ci/travis/helpers.sh index 775287c20b..0f5616581a 100644 --- a/ci/travis/helpers.sh +++ b/ci/travis/helpers.sh @@ -18,13 +18,17 @@ NC='\033[0m' # no color # log command before running and add a blank line run () { - echo -e "${MAGENTA}>>>${NC} $*" + ohai "$*" eval "$*" local retval=$? echo return $retval } +ohai () { + echo -e "${MAGENTA}>>>${NC} $*" +} + # print args as a cyan header header () { echo diff --git a/ci/travis/script.sh b/ci/travis/script.sh index 3966098167..d4ca777149 100755 --- a/ci/travis/script.sh +++ b/ci/travis/script.sh @@ -14,4 +14,6 @@ if any_casks_modified; then modified_casks=($(modified_cask_files)) run brew cask _audit_modified_casks "${TRAVIS_COMMIT_RANGE}" run brew cask style "${modified_casks[@]}" +else + ohai 'No casks modified, skipping' fi