forked from akka/akka-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: replace jabba by proper debian installation (akka#3539)
- Loading branch information
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
version: ~> 1.0 | ||
|
||
os: linux | ||
dist: xenial | ||
|
||
language: scala | ||
|
||
scala: | ||
|
@@ -11,16 +14,18 @@ git: | |
before_install: | ||
# make comparing to origin/master work | ||
- git remote set-branches --add origin master && git fetch | ||
# using jabba for custom jdk management | ||
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.1/install.sh | bash && . ~/.jabba/jabba.sh | ||
- jabba install [email protected] | ||
- jabba use "[email protected]" | ||
- whereis java | ||
- java -version | ||
|
||
addons: | ||
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: | ||
- graphviz | ||
- graphviz | ||
- adoptopenjdk-8-hotspot | ||
|
||
before_cache: | ||
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete | ||
|
@@ -30,12 +35,14 @@ cache: | |
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.sbt/boot | ||
- $HOME/.jabba/jdk | ||
- $HOME/.cache/coursier | ||
|
||
env: | ||
# override default (release to maven central) to only close and go to staging repo | ||
- CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose" | ||
global: | ||
- JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 | ||
- PATH=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin:$PATH | ||
# override default (release to maven central) to only close and go to staging repo | ||
- CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose" | ||
|
||
script: | ||
- sbt -jvm-opts .jvmopts-travis "$CMD" | ||
|