Skip to content

Commit 29a3449

Browse files
committed
UPDATE the workaround for opentjdk crash in travis
1 parent 1883ec4 commit 29a3449

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ before_script:
1414
- export GRADLE_OPTS=-Xmx1024m
1515

1616
# 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*
17+
addons:
18+
hosts:
19+
- myshorthost
20+
hostname: myshorthost
21+

0 commit comments

Comments
 (0)