language: java
jdk:
  - oraclejdk8

# Enable container-based architecture.
sudo: false

addons:
  apt:
    packages:
      # Travis is on 64bit and there will be a cryptic aapt error w/o these libs.
      # For native code tests, we need some additional libraries if we are in a 64-bit environment.
      - libgd2-xpm
      - libc6:i386
      - libstdc++6:i386
      - zlib1g:i386
      - groovy

before_install:
  # Limit Ant's and Buck's memory usage to avoid the OOM killer.
  - export ANT_OPTS='-Xmx500m'
  - export BUCK_EXTRA_JAVA_ARGS='-Xmx500m'
  # Set up the Android environment.
  - export NDK_HOME=${HOME}/android-ndk-linux
  - ./scripts/travisci_install_android_ndk.sh
  - export ANDROID_HOME=${HOME}/android-sdk-linux
  - ./scripts/travisci_install_android_sdk.sh
  # Install go 1.5
  - eval "$(gimme 1.5)"
  # Set up the Groovy environment
  - export GROOVY_HOME=/usr/share/groovy/

cache:
  directories:
    - $HOME/android-ndk-linux
    - $HOME/android-sdk-linux

script:
  - ./scripts/travisci_run.sh

language: java
jdk:
  - oraclejdk8

# Enable container-based architecture.
sudo: false

addons:
  apt:
    packages:
      # Travis is on 64bit and there will be a cryptic aapt error w/o these libs.
      # For native code tests, we need some additional libraries if we are in a 64-bit environment.
      - libgd2-xpm
      - libc6:i386
      - libstdc++6:i386
      - zlib1g:i386
      - groovy
      # Getting compile errors on javac 1.8.0_31-b13
      - oracle-java8-installer

before_install:
  # Limit Ant's and Buck's memory usage to avoid the OOM killer.
  - export ANT_OPTS='-Xmx500m'
  - export BUCK_EXTRA_JAVA_ARGS='-Xmx500m'
  # Set up the Android environment.
  - export NDK_HOME=${HOME}/android-ndk-linux
  - ./scripts/travisci_install_android_ndk.sh
  - export ANDROID_HOME=${HOME}/android-sdk-linux
  - ./scripts/travisci_install_android_sdk.sh
  # Install go 1.5
  - eval "$(gimme 1.5)"
  # Set up the Groovy environment
  - export GROOVY_HOME=/usr/share/groovy/

cache:
  directories:
    - $HOME/android-ndk-linux
    - $HOME/android-sdk-linux

script:
  - ./scripts/travisci_run.sh

Use newer java 8 on Travis CI
Use newer java 8 on Travis CI

Summary:
Per https://github.com/travis-ci/travis-ci/issues/4042, this should
give us a newer jdk on Travis CI.
Closes https://github.com/facebook/buck/pull/968

Reviewed By: marcinkosiba

fbshipit-source-id: 918b1bb
