Skip to content
Snippets Groups Projects
Commit 3953d6a6 authored by Max Gaukler's avatar Max Gaukler Committed by Thomas Oster
Browse files

Fix travis CI: workaround OpenJDK buffer overflow for long hostnames (#62)

Really fixes #61
parent 9bff9241
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,14 @@ jdk:
- openjdk7
- openjdk6
before_install:
- sudo hostname "$(hostname | cut -c1-63)" # Fix for travis issue https://github.com/travis-ci/travis-ci/issues/5227
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/host
script:
- "./test.sh"
- "ant test"
- "ant jar"
addons:
# Fix OpenJDK 7 buffer overflows when the host name is too long.
# https://docs.travis-ci.com/user/hostname
# https://github.com/travis-ci/travis-ci/issues/5227
hostname: dummy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment