Skip to content

Commit 18d0274

Browse files
committed
Fix travis build
1 parent ab28ea6 commit 18d0274

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

Diff for: .travis.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1+
dist: bionic
12
language: java
2-
3-
# fix for https://github.com/travis-ci/travis-ci/issues/5227
4-
before_install:
5-
- cat /etc/hosts # optionally check the content *before*
6-
- sudo hostname "$(hostname | cut -c1-63)"
7-
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
8-
- sudo mv /tmp/hosts /etc/hosts
9-
- cat /etc/hosts # optionally check the content *after*
10-
11-
jdk:
12-
- openjdk7
13-
- oraclejdk8
3+
jdk: openjdk8
4+
script:
5+
- mvn clean package

0 commit comments

Comments
 (0)