Skip to content

Commit

Permalink
Use JDK 8 for ci (#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed May 29, 2021
1 parent 02b037c commit 8193050
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
24 changes: 18 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@ services:
git:
depth: 500

# using jabba for custom jdk management (see ./scripts/build.sh)
addons:
hosts:
# to run tests locally, these hostnames need to resolve to localhost IP
- hbase
apt:
sources:
# Official debian package for AdoptOpenJDK from https://adoptopenjdk.net/installation.html#linux-pkg
- sourceline: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ xenial main
key_url: https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
packages:
- adoptopenjdk-8-hotspot

before_install:
- whereis java
# build, test and release using JDK 8 to make sure alpakka works with it
- export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64
- export PATH=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin:$PATH
- java -version

# default script for jobs, that do not have any specified
script: ./scripts/travis.sh
Expand Down Expand Up @@ -177,11 +194,6 @@ cache:
- $HOME/.jabba
timeout: 900

addons:
hosts:
# to run tests locally, these hostnames need to resolve to localhost IP
- hbase

env:
global:
- RUN_DROP_TRAVIS_CACHES_STAGE=true
Expand Down
8 changes: 0 additions & 8 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ set -x
PRE_CMD=$1
CMD=$2

[ "$TRAVIS_EVENT_TYPE" == "cron" ] && JDK="adopt@~1.11-0" || JDK="adopt@~1.8-0"

# using jabba for custom jdk management
if [ ! -f ~/.jabba/jabba.sh ]; then curl -L -v --retry 5 -o jabba-install.sh https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh && bash jabba-install.sh; fi
. ~/.jabba/jabba.sh
jabba install "$JDK"
jabba use "$JDK"
java -version
$PRE_CMD

sbt -sbt-launch-repo https://repo1.maven.org/maven2 -jvm-opts .jvmopts-travis "$CMD"

0 comments on commit 8193050

Please sign in to comment.