Install and use java 8 on travis

Summary: Java tests need to run with java 8, ensure travis runs java 8

Reviewed By: gkassabli

Differential Revision: D4182384

fbshipit-source-id: 61ba77d3e0f008f50912d088d3e504cb96e46bdc
This commit is contained in:
Emil Sjolander
2016-11-15 06:24:51 -08:00
committed by Facebook Github Bot
parent 129437f49e
commit 603321e1ab

View File

@@ -14,8 +14,11 @@ before_install:
- brew update
- brew tap facebook/fb
- brew install buck
- brew cask install java
- brew outdated xctool || brew upgrade xctool
- brew install mono
- export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
- export PATH=$JAVA_HOME/bin:$PATH
script:
- buck test //:CSSLayout