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

ci: use jenv

Enable the ant and maven plugins.

Set the local and global jdk version to match the value of the
environment variable ABCL_JDK.
parent dbed75cc
......@@ -64,7 +64,19 @@ function add_jdk() {
esac
}
function set_jdk() {
pushd ${TRAVIS_BUILD_DIR}
# ideally, this should be enough
jenv version ${ABCL_JDK}
# but practically we guard every invocation of jenv this way
jenv global ${ABCL_JDK}
popd
}
determine_adoptjdk
download_and_extract
add_jdk
set_jdk
......@@ -12,6 +12,9 @@ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ${profile}
echo 'eval "$(jenv init -)"' >> ${profile}
. ${profile}
jenv enable-plugin ant
jenv enanle-plugin maven
jenv doctor
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