|
| 1 | +# Copyright 2023 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# Format: //devtools/kokoro/config/proto/build.proto |
| 16 | + |
| 17 | +timeout_mins: 300 |
| 18 | + |
| 19 | +# Configure the docker image for kokoro-trampoline. |
| 20 | +env_vars: { |
| 21 | + key: "TRAMPOLINE_IMAGE" |
| 22 | + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" |
| 23 | +} |
| 24 | + |
| 25 | +# Download trampoline resources. |
| 26 | +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
| 27 | + |
| 28 | +# Use the trampoline script to run in docker. |
| 29 | +build_file: "python-docs-samples/.kokoro/trampoline_v2.sh" |
| 30 | + |
| 31 | +# Download secrets from Cloud Storage. |
| 32 | +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
| 33 | + |
| 34 | +# Access btlr binaries used in the tests |
| 35 | +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/btlr" |
| 36 | + |
| 37 | +# Copy results for Resultstore |
| 38 | +action { |
| 39 | + define_artifacts { |
| 40 | + regex: "**/*sponge_log.xml" |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +# Specify which tests to run |
| 45 | +env_vars: { |
| 46 | + key: "RUN_TESTS_SESSION" |
| 47 | + value: "py-3.11" |
| 48 | +} |
| 49 | + |
| 50 | +# Declare build specific Cloud project. It still uses the common one, |
| 51 | +# but we'll update the value once we have more Cloud projects. |
| 52 | +env_vars: { |
| 53 | + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" |
| 54 | + value: "python-docs-samples-tests-311" |
| 55 | +} |
| 56 | + |
| 57 | +# Number of test workers. |
| 58 | +env_vars: { |
| 59 | + key: "NUM_TEST_WORKERS" |
| 60 | + value: "10" |
| 61 | +} |
| 62 | + |
| 63 | +env_vars: { |
| 64 | + key: "TRAMPOLINE_DOCKERFILE" |
| 65 | + value: ".kokoro/docker/Dockerfile" |
| 66 | +} |
0 commit comments