language: java
jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7

after_success:
  - ./gradlew jacocoTestReport coveralls

language: java
jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7

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*

after_success:
  - ./gradlew jacocoTestReport coveralls

Apply workaround for failing Travis-CI build
Apply workaround for failing Travis-CI build

Building under OpenJDK7 results in a buffer overflow error. The Travis
team suggested this workaround in travis-ci/travis-ci issue #5227.

See the whole thread at https://github.com/travis-ci/travis-ci/issues/5227
