diff --git a/.travis.yml b/.travis.yml index 6a6d2dc..0058f82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,14 @@ env: global: - STORM_TEST_TIMEOUT_MS=13000 +# Workaround for Travis CI issue 5227, which results in a buffer overflow +# caused by Java when running the build on OpenJDK. +# https://github.com/travis-ci/travis-ci/issues/5227 +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* script: - "./sbt test" language: scala