Skip to content

Commit

Permalink
Travis: add workaround for travis-ci issue 5227
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael G. Noll committed Dec 16, 2015
1 parent 5b001bb commit b878fcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b878fcd

Please sign in to comment.