From 0b00410123c30a5b7ecaaa8ecf4e56e90bfe7cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 10 Feb 2016 20:02:50 +0100 Subject: travis: use new hostname addon instead of workaround --- .travis.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index abbd6749e..402bfa4b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,13 +8,10 @@ jdk: openjdk7 # force non-container build sudo: required -# workaround for https://github.com/travis-ci/travis-ci/issues/5227 -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* - +# OpenJDK 6 and OpenJDK 7 processes will encounter buffer overflows when the host name is too long. +# https://docs.travis-ci.com/user/hostname +addons: + hostname: short-hostname android: components: - build-tools-23.0.1 -- cgit v1.2.3