travis: notify if no casks modified

This commit is contained in:
Josh Hagins 2016-10-19 11:04:38 -04:00
parent 3a61af920a
commit 8eea303cab
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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