Skip to content

Commit 51d69b4

Browse files
toddobryan-amazongourlaysama
authored andcommitted
Add Travis workaround based on both hostname and /etc/hosts
See travis-ci/travis-ci#5227.
1 parent 3eef456 commit 51d69b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
language: scala
22

3+
before_install:
4+
- cat /etc/hosts # optionally check the content *before*
5+
- sudo hostname "$(hostname | cut -c1-63)"
6+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
7+
- cat /etc/hosts # optionally check the content *after*
8+
39
env:
410
global:
511
- PUBLISH_JDK=openjdk6

0 commit comments

Comments
 (0)