Skip to content

Commit dd5ef8c

Browse files
committed
Updating fix for travis-ci/travis-ci#5227
1 parent 6380cec commit dd5ef8c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ before_script:
1414
- "./scripts/startPrism.sh &"
1515
- sleep 20
1616
before_install:
17-
- cat /etc/hosts # optionally check the content *before*
18-
- sudo hostname "$(hostname | cut -c1-63)"
19-
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
20-
- cat /etc/hosts # optionally check the content *after*
17+
- cat /etc/hosts # optionally check the content *before*
18+
- sudo hostname "$(hostname | cut -c1-63)"
19+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
20+
- sudo mv /tmp/hosts /etc/hosts
21+
- cat /etc/hosts # optionally check the content *after*
2122
after_script:
22-
- lsof -i :4010 -S # adds some debugging statements
23-
- "./gradlew build"
24-
- "./scripts/upload.sh"
23+
- lsof -i :4010 -S # adds some debugging statements
24+
- "./gradlew build"
25+
- "./scripts/upload.sh"
2526
env:
2627
global:
2728
- S3_POLICY: ewogICJleHBpcmF0aW9uIjogIjIxMDAtMDEtMDFUMTI6MDA6MDAuMDAwWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImFjbCI6ICJwdWJsaWMtcmVhZCIgfSwKICAgIHsiYnVja2V0IjogInNlbmRncmlkLW9wZW4tc291cmNlIiB9LAogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgInNlbmRncmlkLWphdmEvIl0sCiAgICBbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwgMjA0OCwgMjY4NDM1NDU2XSwKICAgIFsiZXEiLCAiJENvbnRlbnQtVHlwZSIsICJhcHBsaWNhdGlvbi96aXAiXQogIF0KfQo=

0 commit comments

Comments
 (0)