Skip to content

Commit

Permalink
Ensure proper JAVA_HOME with Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Oct 8, 2018
1 parent b31fbba commit d62193b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ addons:
before_install:
- 'if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ant; fi'
- 'if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi'
- 'if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH="$JAVA_HOME/bin:$PATH"; fi'
- java -version
- javac -version

script:
- 'if [ "$CHECKSTYLE" = "yes" ]; then ant checkstyle && travis_terminate 0; fi'
Expand Down

0 comments on commit d62193b

Please sign in to comment.