Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Commit 5a64dbe

Browse files
feat: Introduce Native Image testing build script changes (#565)
Adds additional switch case to build.sh to accommodate native image testing. Source-Author: Daniel Zou <[email protected]> Source-Date: Mon Oct 18 11:42:09 2021 -0400 Source-Repo: googleapis/synthtool Source-Sha: d45942be8066ad57bd0509f4a16e1fac78ecc50f Source-Link: googleapis/synthtool@d45942b
1 parent e221882 commit 5a64dbe

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

Diff for: .kokoro/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ integration)
6969
verify
7070
RETURN_CODE=$?
7171
;;
72+
graalvm)
73+
# Run Unit and Integration Tests with Native Image
74+
mvn test -Pnative -Penable-integration-tests
75+
RETURN_CODE=$?
76+
;;
7277
samples)
7378
SAMPLES_DIR=samples
7479
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.

Diff for: .kokoro/presubmit/graalvm-native.cfg

+33
Original file line numberDiff line numberDiff 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/graalvm"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "graalvm"
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+
}

Diff for: synth.metadata

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-compute.git",
7-
"sha": "56af77345508d42133ac1a47ebf19d2bfa51507b"
7+
"sha": "4079fb224c99175e9ef1b361c2127683695d5342"
88
}
99
},
1010
{
@@ -18,7 +18,7 @@
1818
"git": {
1919
"name": "synthtool",
2020
"remote": "https://github.com/googleapis/synthtool.git",
21-
"sha": "a4be3384ccb92364795d981f2863f6986fcee620"
21+
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
2222
}
2323
}
2424
],
@@ -70,6 +70,7 @@
7070
".kokoro/presubmit/clirr.cfg",
7171
".kokoro/presubmit/common.cfg",
7272
".kokoro/presubmit/dependencies.cfg",
73+
".kokoro/presubmit/graalvm-native.cfg",
7374
".kokoro/presubmit/integration.cfg",
7475
".kokoro/presubmit/java11.cfg",
7576
".kokoro/presubmit/java7.cfg",

0 commit comments

Comments
 (0)