Skip to content

Commit 3f349b8

Browse files
Refactor GraalVM installation in build.sh
Updated GraalVM installation process in build script.
1 parent 2a58bd2 commit 3f349b8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.kokoro/build.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,18 @@ integration-cloud-staging)
110110
;;
111111
graalvm)
112112
# Run Unit and Integration Tests with Native Image.
113-
set -ex
114-
microdnf install zip
115-
curl -s "https://get.sdkman.io" | bash -e
116-
source "/root/.sdkman/bin/sdkman-init.sh"
117-
sdk install java 25-graalce -Y
113+
echo "Install GraalVM 25"
114+
echo "$JAVA_HOME"
115+
pwd
116+
mkdir -p ~/tools/jdk
117+
cd ~/tools/jdk
118+
wget https://download.oracle.com/graalvm/25/latest/graalvm-jdk-25_linux-x64_bin.tar.gz
119+
tar -xf graalvm-jdk-25_linux-x64_bin.tar.gz
120+
export JAVA_HOME=~/tools/jdk/graalvm-jdk-25+37.1
121+
export PATH=$JAVA_HOME/bin:$PATH
118122
java -version
123+
echo "Running native image tests..."
124+
cd "${scriptDir}/.."
119125
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=com.google.cloud.spanner.jdbc.it.**"
120126
RETURN_CODE=$?
121127
;;

0 commit comments

Comments
 (0)