Skip to content
Permalink
Browse files
feat: Introduce Native Image testing build script changes (#733)
Adds additional switch case to build.sh to accommodate native image testing.

Source-Author: Daniel Zou <dzou@users.noreply.github.com>
Source-Date: Mon Oct 18 11:42:09 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: d45942be8066ad57bd0509f4a16e1fac78ecc50f
Source-Link: googleapis/synthtool@d45942b
  • Loading branch information
yoshi-automation committed Oct 21, 2021
1 parent df3950b commit 2b2e65ffbe3da4a27070a0e6e15af9f1f42ef8fb
Showing with 41 additions and 2 deletions.
  1. +5 −0 .kokoro/build.sh
  2. +33 −0 .kokoro/presubmit/graalvm-native.cfg
  3. +3 −2 synth.metadata
@@ -69,6 +69,11 @@ integration)
verify
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn test -Pnative -Penable-integration-tests
RETURN_CODE=$?
;;
samples)
SAMPLES_DIR=samples
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
@@ -0,0 +1,33 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm"
}

env_vars: {
key: "JOB_TYPE"
value: "graalvm"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-it-service-account"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
"sha": "e82b1fc8fd69b6fd8711fa0c576ceb2897f00c3a"
"sha": "345cd80877bce3c41d30809461d176d25310b5cf"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "a4be3384ccb92364795d981f2863f6986fcee620"
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
}
}
],
@@ -71,6 +71,7 @@
".kokoro/presubmit/clirr.cfg",
".kokoro/presubmit/common.cfg",
".kokoro/presubmit/dependencies.cfg",
".kokoro/presubmit/graalvm-native.cfg",
".kokoro/presubmit/integration.cfg",
".kokoro/presubmit/java11.cfg",
".kokoro/presubmit/java7.cfg",

0 comments on commit 2b2e65f

Please sign in to comment.