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