Skip to content

Commit

Permalink
ci(travis): add open jdk 8 to test matrix
Browse files Browse the repository at this point in the history
add a fix for buffer overflow on percise open jdk 7.
update MacOS test image.
  • Loading branch information
ChristianMurphy committed Oct 16, 2017
1 parent 4f16ad2 commit 91a287b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,33 @@ matrix:
- os: linux
dist: trusty
jdk: oraclejdk8
- os: linux
dist: trusty
jdk: openjdk8
- os: linux
dist: precise
jdk: oraclejdk8
- os: linux
dist: precise
jdk: openjdk8
- os: linux
dist: trusty
jdk: openjdk7
- os: linux
dist: precise
jdk: openjdk7
before_install:
# Fix buffer overflow in getLocalHostName of OpenJDK 7 by shortening the host name
- cat /etc/hosts
- 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
- os: linux
dist: precise
jdk: oraclejdk7
- os: osx
osx_image: xcode8.3 # OS X 10.12
osx_image: xcode9.1 # OS X 10.12
- os: osx
osx_image: xcode7.3 # OS X 10.11
- os: osx
Expand Down

0 comments on commit 91a287b

Please sign in to comment.