From cd57c593725498ad558f986d270df85af0eaaf8d Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Thu, 21 Jan 2016 23:43:17 -0500 Subject: [PATCH] Workaround for travis-ci/travis-ci#5227 --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0f949c800..aa8cfbbd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,9 @@ notifications: email: - qbranch@typesafe.com before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq rpm + - cat /etc/hosts # optionally check the content *before* + - sudo hostname "$(hostname | cut -c1-63)" + - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts + - cat /etc/hosts # optionally check the content *after* + - sudo apt-get update -qq + - sudo apt-get install -qq rpm