Skip to content

Commit

Permalink
Patch .travis.yml for buffer overflow bug, see travis-ci/travis-ci#5227
Browse files Browse the repository at this point in the history
  • Loading branch information
darjus committed Jan 12, 2016
1 parent b547466 commit 1027874
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1027874

Please sign in to comment.