Skip to content

Commit 963e384

Browse files
authored
fix: add build script for JDK 17 native image testing (#965)
* fix: add build script for JDK 17 native image testing
1 parent cb576fd commit 963e384

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.kokoro/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ graalvm)
7474
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
7575
RETURN_CODE=$?
7676
;;
77+
graalvm17)
78+
# Run Unit and Integration Tests with Native Image
79+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
80+
RETURN_CODE=$?
81+
;;
7782
samples)
7883
SAMPLES_DIR=samples
7984
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "graalvm17"
12+
}
13+
14+
env_vars: {
15+
key: "GCLOUD_PROJECT"
16+
value: "java-review"
17+
}
18+
19+
env_vars: {
20+
key: "GOOGLE_APPLICATION_CREDENTIALS"
21+
value: "secret_manager/java-review_firestore-java-it"
22+
}
23+
24+
env_vars: {
25+
key: "SECRET_MANAGER_KEYS"
26+
value: "java-review_firestore-java-it"
27+
}

owlbot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@
8383
'.kokoro/presubmit/samples.cfg',
8484
'.kokoro/nightly/integration.cfg',
8585
'.kokoro/nightly/java11-integration.cfg',
86-
'.kokoro/nightly/samples.cfg'
86+
'.kokoro/nightly/samples.cfg',
87+
'.kokoro/build.sh'
8788
])

0 commit comments

Comments
 (0)