Commit 267534fa authored by Mark Evenson's avatar Mark Evenson
Browse files

ci: more fixes for jenv installation

parent a86dfd16
......@@ -65,12 +65,22 @@ function add_jdk() {
}
function set_jdk() {
jenv versions
case ${ABCL_JDK} in
openjdk8)
version=$(jenv versions | grep openjdk | grep 1.8 | tail -1 | sed s/*//)
;;
openjdk11)
version=$(jenv versions | grep openjdk | grep 11.0 | tail -1 | sed s/*//)
;;
esac
pushd ${TRAVIS_BUILD_DIR}
# ideally, this should be enough
jenv version ${ABCL_JDK}
jenv local ${version}
# but practically we guard every invocation of jenv this way
jenv global ${ABCL_JDK}
jenv global ${version}
popd
}
......@@ -80,3 +90,6 @@ download_and_extract
add_jdk
set_jdk
......@@ -13,7 +13,7 @@ echo 'eval "$(jenv init -)"' >> ${profile}
. ${profile}
jenv enable-plugin ant
jenv enanle-plugin maven
jenv enable-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