Skip to content

Commit

Permalink
fix: add build script for JDK 17 native image testing (#965)
Browse files Browse the repository at this point in the history
* fix: add build script for JDK 17 native image testing
  • Loading branch information
mpeddada1 authored Jun 14, 2022
1 parent cb576fd commit 963e384
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ graalvm)
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
RETURN_CODE=$?
;;
graalvm17)
# Run Unit and Integration Tests with Native Image
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
RETURN_CODE=$?
;;
samples)
SAMPLES_DIR=samples
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
Expand Down
27 changes: 27 additions & 0 deletions .kokoro/presubmit/graalvm-native-17.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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/graalvm17"
}

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

env_vars: {
key: "GCLOUD_PROJECT"
value: "java-review"
}

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

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-review_firestore-java-it"
}
3 changes: 2 additions & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@
'.kokoro/presubmit/samples.cfg',
'.kokoro/nightly/integration.cfg',
'.kokoro/nightly/java11-integration.cfg',
'.kokoro/nightly/samples.cfg'
'.kokoro/nightly/samples.cfg',
'.kokoro/build.sh'
])

0 comments on commit 963e384

Please sign in to comment.