#!/bin/bash 

# check for OSX
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
  echo "Wrong OS: $TRAVIS_OS_NAME"
  exit 1
fi

brew tap caskroom/cask

brew update #; brew doctor; brew update

brew install ant brew-cask && brew cask install java

java -version

#!/bin/bash 

# check for OSX
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
  echo "Wrong OS: $TRAVIS_OS_NAME"
  exit 1
fi

brew tap caskroom/cask

echo "brew update ..."
brew update > /dev/null # There is no need for all of this output to be seen

brew install ant

brew tap caskroom/cask
brew cask install java

java -version

Change the homebrew install steps to clean output
Change the homebrew install steps to clean output

This does multiple things: 

1. Remove excess output from `brew update`
2. Removes the install of `brew-cask`, it's deprecated

This should speed up the install time.