Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (16 sloc) 553 Bytes
language: java
dist: trusty
jdk:
- oraclejdk8
- openjdk8
before_install:
- chmod +x gradlew
#
# The following block will resolve OpenJDK7 crash issue in Travis
# Refer to https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
#
- 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 > /tmp/hosts
- sudo mv /tmp/hosts /etc/hosts
- cat /etc/hosts # optionally check the content *after* #