feat: add build scripts for native image testing in Java 17 (#1440) (… · googleapis/java-logging-servlet-initializer@e666361 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit e666361
feat: add build scripts for native image testing in Java 17 (#1440) (#148)
Source-Link: googleapis/synthtool@505ce5aPost-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
File tree
3 files changed
lines changed
3 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -13,5 +13,5 @@ | ||
13 | 13 | # limitations under the License. |
14 | 14 | docker: |
15 | 15 | image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest |
16 | -digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 | |
17 | -# created: 2022-04-06T16:30:03.627422514Z | |
16 | +digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 | |
17 | +# created: 2022-05-19T15:12:45.278246753Z |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -74,6 +74,11 @@ graalvm) | ||
74 | 74 | mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test |
75 | 75 | RETURN_CODE=$? |
76 | 76 | ;; |
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 | + ;; | |
77 | 82 | samples) |
78 | 83 | SAMPLES_DIR=samples |
79 | 84 | # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 | +# TODO: remove this after we've migrated all tests and scripts | |
15 | +env_vars: { | |
16 | + key: "GCLOUD_PROJECT" | |
17 | + value: "gcloud-devel" | |
18 | +} | |
19 | + | |
20 | +env_vars: { | |
21 | + key: "GOOGLE_CLOUD_PROJECT" | |
22 | + value: "gcloud-devel" | |
23 | +} | |
24 | + | |
25 | +env_vars: { | |
26 | + key: "GOOGLE_APPLICATION_CREDENTIALS" | |
27 | + value: "secret_manager/java-it-service-account" | |
28 | +} | |
29 | + | |
30 | +env_vars: { | |
31 | + key: "SECRET_MANAGER_KEYS" | |
32 | + value: "java-it-service-account" | |
33 | +} |