aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2016-05-08 16:20:17 +0300
committerDominik Schürmann <dominik@dominikschuermann.de>2016-05-08 16:20:17 +0300
commitc8a0eb3a083c92b654610f34655fed80312a8ef1 (patch)
treea24786917f7e8c266d3357a21ce2c7f7e6174025
parenta013f4a49d177cf6405bb48edc96286e8505d912 (diff)
downloadopen-keychain-c8a0eb3a083c92b654610f34655fed80312a8ef1.tar.gz
open-keychain-c8a0eb3a083c92b654610f34655fed80312a8ef1.tar.bz2
open-keychain-c8a0eb3a083c92b654610f34655fed80312a8ef1.zip
Travis: use old workaround due to https://github.com/travis-ci/travis-ci/issues/5669
-rw-r--r--.travis.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 9d87e5e7f..1ce4475cd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,9 +9,16 @@ jdk: openjdk7
# force non-container build
sudo: required
# OpenJDK 6 and OpenJDK 7 processes will encounter buffer overflows when the host name is too long.
+# hostname addon disabled due to https://github.com/travis-ci/travis-ci/issues/5669
# https://docs.travis-ci.com/user/hostname
-addons:
- hostname: short-hostname
+#addons:
+# hostname: short-hostname
+# workaround from https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
+before_install:
+ - 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*
android:
components:
- tools