travis: notify if no casks modified
This commit is contained in:
parent
3a61af920a
commit
8eea303cab
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue