diff --git a/.travis.yml b/.travis.yml index bbfdc37..26af1df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,9 @@ jdk: - oraclejdk8 before_install: # override default MAVEN_OPTS - - echo "MAVEN_OPTS='-Xms1g -Xmx2g -XX:MaxPermSize=512m'" > ~/.mavenrc \ No newline at end of file + - echo "MAVEN_OPTS='-Xms1g -Xmx2g -XX:MaxPermSize=512m'" > ~/.mavenrc + # Fix OpenJDK buffer overflow + - 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* \ No newline at end of file