Skip to content

Commit 51694c4

Browse files
committed
add workaround for travis-ci/travis-ci#5227
1 parent 6cebde7 commit 51694c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ jdk:
33
- openjdk7
44
- oraclejdk7
55
- oraclejdk8
6+
67
notifications:
78
slack:
89
secure: fGRoClN1IQiZvokEiqmKOrF7EeaNQDHDHqUMaT4n7d3qW2fMe3N8ZLxlIDlzgJ2pv09VWqK7rmPgdhJR8yVG7OE4QQ5kzR59xD8ePN0j0jf6W6eOBPq3a9UUarnny21LFsShvRMZ/BaXcvTox1zMVltpMGFw2K4ijH8+ZvdkNz8=
10+
911
before_script:
1012
- echo $JAVA_OPTS
1113
- export JAVA_OPTS="$JAVA_OPTS -Xmx1024m"
1214
- export GRADLE_OPTS=-Xmx1024m
15+
16+
# workaround for https://github.com/travis-ci/travis-ci/issues/5227
17+
before_install:
18+
- cat /etc/hosts # optionally check the content *before*
19+
- sudo hostname "$(hostname | cut -c1-63)"
20+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
21+
- cat /etc/hosts # optionally check the content *after*

0 commit comments

Comments
 (0)