Skip to content

Commit 2ab007f

Browse files
authored
Merge pull request #123 from opentok/fix/openjdk_travis_issue
UPDATE the workaround for opentjdk crash in travis
2 parents f1d3ab1 + 4661f06 commit 2ab007f

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)