Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JDK 8 for ci #2681

Merged
merged 1 commit into from
May 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"