travis: use new hostname addon instead of workaround
This commit is contained in:
parent
e593ca87d2
commit
0b00410123
11
.travis.yml
11
.travis.yml
|
@ -8,13 +8,10 @@ jdk: openjdk7
|
||||||
|
|
||||||
# force non-container build
|
# force non-container build
|
||||||
sudo: required
|
sudo: required
|
||||||
# workaround for https://github.com/travis-ci/travis-ci/issues/5227
|
# OpenJDK 6 and OpenJDK 7 processes will encounter buffer overflows when the host name is too long.
|
||||||
before_install:
|
# https://docs.travis-ci.com/user/hostname
|
||||||
- cat /etc/hosts # optionally check the content *before*
|
addons:
|
||||||
- sudo hostname "$(hostname | cut -c1-63)"
|
hostname: short-hostname
|
||||||
- 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:
|
||||||
- build-tools-23.0.1
|
- build-tools-23.0.1
|
||||||
|
|
Loading…
Reference in a new issue