Permalink
Browse files

test: add openj9 to the matrix (#974)

  • Loading branch information...
jorsol authored and davecramer committed Oct 19, 2017
1 parent 0d918c3 commit f187645896e9f86a654390581163a7064b611404
Showing with 21 additions and 0 deletions.
  1. +8 −0 .travis.yml
  2. +13 −0 .travis/travis_install_openj9.sh
@@ -24,6 +24,8 @@ env:
before_install:
- ./.travis/travis_install_zulu.sh
- test -z "${ZULU_JDK}" || export JDK${ZULU_JDK}_HOME=/usr/lib/jvm/zulu-${ZULU_JDK}-amd64
- ./.travis/travis_install_openj9.sh
- test -z "${OPENJ9}" || export JDK${JDK}_HOME=${HOME}/jdk-9+${OPENJ9}
script:
# make sure previous build artifacts are not used for subsequent builds
@@ -77,6 +79,12 @@ matrix:
env:
- PG_VERSION=9.6
- JDK=9
- jdk: oraclejdk9
sudo: required
env:
- PG_VERSION=10
- JDK=9
- OPENJ9=181
- jdk: oraclejdk8
sudo: required
env:
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -o xtrace -o errexit
if [[ "${TRAVIS_SUDO}" == "true" && -n "${OPENJ9}" ]]
then
# Build to Download
BUILD=${OPENJ9}
# Download from AdoptOpenJDK
wget --quiet -O /tmp/openj9.tar.gz https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases/download/jdk-9%2B${BUILD}/OpenJDK9-OPENJ9_x64_Linux_jdk-9.${BUILD}.tar.gz
tar xfz /tmp/openj9.tar.gz -C ${HOME} # extract to ${HOME}/jdk-9+${BUILD}/
${HOME}/jdk-9+${BUILD}/bin/java -version
fi

0 comments on commit f187645

Please sign in to comment.