language: java
jdk:
  - openjdk6
  - openjdk7
  - oraclejdk7
  - oraclejdk8
cache:
  directories:
  - $HOME/.gradle

language: java
jdk:
  - openjdk6
  - openjdk7
  - oraclejdk7
  - oraclejdk8
cache:
  directories:
  - $HOME/.gradle

# workaround for buffer overflow
# see https://github.com/travis-ci/travis-ci/issues/5227
before_install:
  - cat /etc/hosts # optionally check the content *before*
  - sudo hostname "$(hostname | cut -c1-63)"
  - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
  - cat /etc/hosts # optionally check the content *after*

Add workaround for buffer overflow issue on Travis
Add workaround for buffer overflow issue on Travis

See https://github.com/travis-ci/travis-ci/issues/5227
