Commit a9f61673 authored by Mark Evenson's avatar Mark Evenson
Browse files

ci: try harder to install Java tools

Including the requests from the Ubuntu and Homebrew packaging systems
for commonly needed Java utilities may trigger additional Java runtime
installations.  The more the merrier as we are gonna install a precise
openjdk image anyways, right?
parent 7867b457
# get the default java environment from Travis container
language: java
os:
- linux
- osx
# Linux system
dist: xenial
# 'bionic' is latest Ubuntu LTS available on Travis
dist: bionic
# macOS system
# 'xcode11.2' is macOS 10.14 xcode 11B41
osx_image: xcode11.2
# get the default java environment from Travis container
language: java
# N.b. this will possibly pull in additional Java runtimes
addons:
apt:
packages:
- ant
- maven
homebrew:
update: true
packages:
- ant
- maven
env:
- ABCL_JDK=openjdk8
- ABCL_JDK=openjdk11
......
......@@ -40,7 +40,6 @@ function determine_adoptjdk() {
esac
}
tmpdir=/var/tmp
function download_and_extract() {
......@@ -65,6 +64,7 @@ function add_jdk() {
}
function set_jdk() {
. ${DIR}/ensure-jenv-is-present.bash
jenv versions
case ${ABCL_JDK} in
......
#!/usr/bin/env bash
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
target=~/.jenv
......@@ -12,6 +13,8 @@ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ${profile}
echo 'eval "$(jenv init -)"' >> ${profile}
. ${profile}
. ${DIR}/ensure-jenv-is-present.bash
jenv enable-plugin ant
jenv enable-plugin maven
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment