Repository: calcite-avatica
Updated Branches:
  refs/heads/master 5f1795b43 -> 98bf4d75e


[CALCITE-2210] Remove oraclejdk7, add oraclejdk9, add oraclejdk10, and add 
ibmjava to .travis.yml

The only supported Travis CI Oracle verions are oraclejdk8 and oraclejdk9. For 
more details see:
https://docs.travis-ci.com/user/reference/trusty/#JVM-(Clojure%2C-Groovy%2C-Java%2C-Scala)-images

IBM JDK is not installed by default unless you install it. IBM JDK is supported 
through Docker maven:ibmjava image.

Closes #29

Signed-off-by: Josh Elser <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/98bf4d75
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica/tree/98bf4d75
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica/diff/98bf4d75

Branch: refs/heads/master
Commit: 98bf4d75ec1a7b7ee7e68b9c4f2a72840d8d63dd
Parents: 5f1795b
Author: Kevin Risden <[email protected]>
Authored: Sun Mar 11 11:58:40 2018 -0500
Committer: Josh Elser <[email protected]>
Committed: Wed Mar 14 11:46:30 2018 -0400

----------------------------------------------------------------------
 .travis.yml | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/98bf4d75/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index f719eab..790af97 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,11 +20,11 @@ language: java
 matrix:
   fast_finish: true
   include:
-    - jdk: oraclejdk8
-    - jdk: openjdk7
-      # Travis appears to have broken IBM JDK. Can only get a JRE.
-      # Needs to be investigate.
-      #    - jdk: ibmjava8
+    - env: IMAGE=maven:3-jdk-10
+    # Workaround: https://github.com/docker-library/openjdk/issues/145
+    - env: IMAGE=maven:3-jdk-9-slim
+    - env: IMAGE=maven:3-jdk-8
+    - env: IMAGE=maven:3-ibmjava-8
 branches:
   only:
     - master
@@ -32,20 +32,24 @@ branches:
     - javadoc
     - /^branch-.*$/
     - /^[0-9]+-.*$/
+env:
+  global:
+  - DOCKERRUN="docker run -it --rm -v $PWD:/src -v $HOME/.m2:/root/.m2 -w /src"
+services:
+  - docker
+before_install:
+  - docker pull $IMAGE
 install:
   # Print the Maven version, skip tests and javadoc
-  - mvn -V install -DskipTests -Dmaven.javadoc.skip=true
+  - $DOCKERRUN $IMAGE mvn -V install -DskipTests -Dmaven.javadoc.skip=true
 script:
   # Print surefire output to the console instead of files
   - unset _JAVA_OPTIONS
-  - mvn -Dsurefire.useFile=false verify
+  - $DOCKERRUN $IMAGE mvn -Dsurefire.useFile=false verify
 git:
   depth: 10000
-sudo: false
+sudo: required
 cache:
   directories:
     - $HOME/.m2
-sudo: required
-# Added to enable IBM Java. Temporarily removed.
-#group: edge
 # End .travis.yml

Reply via email to