Travis: use old workaround due to https://github.com/travis-ci/travis-ci/issues/5669
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -9,9 +9,16 @@ jdk: openjdk7
|
|||||||
# force non-container build
|
# force non-container build
|
||||||
sudo: required
|
sudo: required
|
||||||
# OpenJDK 6 and OpenJDK 7 processes will encounter buffer overflows when the host name is too long.
|
# 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
|
# https://docs.travis-ci.com/user/hostname
|
||||||
addons:
|
#addons:
|
||||||
hostname: short-hostname
|
# 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:
|
android:
|
||||||
components:
|
components:
|
||||||
- tools
|
- tools
|
||||||
|
|||||||
Reference in New Issue
Block a user