Skip to content

Commit

Permalink
[LIVY-390][BUILD] Only using JDK8 to build with Spark 2.2
Browse files Browse the repository at this point in the history
Because Spark 2.2 removes JDK7 support but Livy still supports JDK7, so updating travis file to use JDK8 to build against Spark 2.2, whereas still using JDK7 to build with Spark 2.2-.

Author: jerryshao <[email protected]>

Closes apache#30 from jerryshao/LIVY-390.
  • Loading branch information
jerryshao committed Aug 3, 2017
1 parent fc4a9e6 commit e434d9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ dist: trusty
language: scala

env:
- MVN_FLAG='-Pspark-1.6 -DskipTests'
- MVN_FLAG='-Pspark-2.0 -DskipTests'
- MVN_FLAG='-Pspark-2.1 -DskipTests'
- MVN_FLAG='-Pspark-2.2 -DskipTests'
- MVN_FLAG='-Pspark-1.6 -DskipITs'
- MVN_FLAG='-Pspark-2.0 -DskipITs'
- MVN_FLAG='-Pspark-2.1 -DskipITs'
- MVN_FLAG='-Pspark-2.2 -DskipITs'
matrix:
- MVN_FLAG='-Pspark-1.6 -DskipTests'
- MVN_FLAG='-Pspark-2.0 -DskipTests'
- MVN_FLAG='-Pspark-2.1 -DskipTests'
- MVN_FLAG='-Pspark-1.6 -DskipITs'
- MVN_FLAG='-Pspark-2.0 -DskipITs'
- MVN_FLAG='-Pspark-2.1 -DskipITs'

matrix:
include:
# Spark 2.2 will only be verified using JDK8
- env: MVN_FLAG='-Pspark-2.2 -DskipTests'
jdk: oraclejdk8
- env: MVN_FLAG='-Pspark-2.2 -DskipITs'
jdk: oraclejdk8


jdk:
- oraclejdk8
- openjdk7

addons:
apt:
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@
</activation>
<properties>
<spark.version>2.2.0</spark.version>
<java.version>1.8</java.version>
</properties>
</profile>

Expand Down

0 comments on commit e434d9e

Please sign in to comment.