Skip to content

Commit b95dbc6

Browse files
chore: use strict-image-heap only in image A
1 parent cb8138e commit b95dbc6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.kokoro/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ graalvm)
115115
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=com.google.cloud.spanner.jdbc.it.**"
116116
RETURN_CODE=$?
117117
;;
118+
graalvmA)
119+
# Run Unit and Integration Tests with Native Image A.
120+
NATIVE_IMAGE_OPTIONS="--strict-image-heap" mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=com.google.cloud.spanner.jdbc.it.**"
121+
RETURN_CODE=$?
122+
;;
118123
samples)
119124
SAMPLES_DIR=samples
120125
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.

.kokoro/presubmit/graalvm-native-a.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env_vars: {
88

99
env_vars: {
1010
key: "JOB_TYPE"
11-
value: "graalvm"
11+
value: "graalvmA"
1212
}
1313

1414
# TODO: remove this after we've migrated all tests and scripts
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#Args=--strict-image-heap
1+
Args=--initialize-at-build-time=com.google.cloud.spanner.jdbc.it

0 commit comments

Comments
 (0)