Skip to content

Commit f82fe88

Browse files
authored
test: update tests to graalvm 25
1 parent a9bf3e1 commit f82fe88

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.kokoro/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ graalvm)
8080
# Run Unit and Integration Tests with Native Image
8181
bash .kokoro/populate-secrets.sh
8282
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/secret_manager/java-it-service-account"
83+
echo "Install GraalVM 25"
84+
echo "$JAVA_HOME"
85+
pwd
86+
mkdir -p ~/tools/jdk
87+
cd ~/tools/jdk
88+
wget https://download.oracle.com/graalvm/25/latest/graalvm-jdk-25_linux-x64_bin.tar.gz
89+
tar -xf graalvm-jdk-25_linux-x64_bin.tar.gz
90+
export JAVA_HOME=~/tools/jdk/graalvm-jdk-25+37.1
91+
export PATH=$JAVA_HOME/bin:$PATH
92+
java -version
93+
echo "Running native image tests..."
94+
cd "${scriptDir}/.."
8395
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Pnative-test -Pslf4j2x test -pl 'oauth2_http'
8496
RETURN_CODE=$?
8597
;;

0 commit comments

Comments
 (0)