From 1027874eed2adc55e89333a884cf56aaef096d48 Mon Sep 17 00:00:00 2001 From: Darjus Loktevic <177063+darjus@users.noreply.github.com> Date: Wed, 13 Jan 2016 09:54:17 +1100 Subject: [PATCH] Patch .travis.yml for buffer overflow bug, see https://github.com/travis-ci/travis-ci/issues/5227 --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 018c24371..3b0390445 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,13 @@ matrix: env: CUSTOM_JDK="default" before_install: + # Patch for buffer overflow bug, see https://github.com/travis-ci/travis-ci/issues/5227 + - hostname + - 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 + - hostname + - cat /etc/hosts # optionally check the content *after* - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ant; fi