From 0e80dc0f964216148a7db76cd4c86a5667b572ed Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 7 Oct 2021 12:02:33 -0400 Subject: [PATCH] ci: Add kokoro configs for python3.10 (#51) --- .../.kokoro/samples/python3.10/common.cfg | 40 +++++++++++++++++++ .../.kokoro/samples/python3.10/continuous.cfg | 6 +++ .../samples/python3.10/periodic-head.cfg | 11 +++++ .../.kokoro/samples/python3.10/periodic.cfg | 6 +++ .../.kokoro/samples/python3.10/presubmit.cfg | 6 +++ 5 files changed, 69 insertions(+) create mode 100644 packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/common.cfg create mode 100644 packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/continuous.cfg create mode 100644 packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic-head.cfg create mode 100644 packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic.cfg create mode 100644 packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/presubmit.cfg diff --git a/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/common.cfg b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/common.cfg new file mode 100644 index 000000000000..2a7ec1d6988d --- /dev/null +++ b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/common.cfg @@ -0,0 +1,40 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.10" +} + +# Declare build specific Cloud project. +env_vars: { + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" + value: "python-docs-samples-tests-310" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-apigee-connect/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-apigee-connect/.kokoro/trampoline_v2.sh" \ No newline at end of file diff --git a/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/continuous.cfg b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic-head.cfg b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic-head.cfg new file mode 100644 index 000000000000..5bd7726a253d --- /dev/null +++ b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic-head.cfg @@ -0,0 +1,11 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-apigee-connect/.kokoro/test-samples-against-head.sh" +} diff --git a/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic.cfg b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic.cfg new file mode 100644 index 000000000000..71cd1e597e38 --- /dev/null +++ b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} diff --git a/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/presubmit.cfg b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-apigee-connect/.kokoro/samples/python3.10/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file