gcf-owl-bot[bot] | fc365b8 | 2021-10-07 10:14:10 +0000 | [diff] [blame] | 1 | # Copyright 2020 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 | # Template for .trampolinerc |
| 16 | |
| 17 | # Add required env vars here. |
| 18 | required_envvars+=( |
| 19 | ) |
| 20 | |
| 21 | # Add env vars which are passed down into the container here. |
| 22 | pass_down_envvars+=( |
| 23 | "NOX_SESSION" |
| 24 | ############### |
| 25 | # Docs builds |
| 26 | ############### |
| 27 | "STAGING_BUCKET" |
| 28 | "V2_STAGING_BUCKET" |
| 29 | ################## |
| 30 | # Samples builds |
| 31 | ################## |
| 32 | "INSTALL_LIBRARY_FROM_SOURCE" |
| 33 | "RUN_TESTS_SESSION" |
| 34 | "BUILD_SPECIFIC_GCLOUD_PROJECT" |
| 35 | # Target directories. |
| 36 | "RUN_TESTS_DIRS" |
| 37 | # The nox session to run. |
| 38 | "RUN_TESTS_SESSION" |
| 39 | ) |
| 40 | |
| 41 | # Prevent unintentional override on the default image. |
| 42 | if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \ |
| 43 | [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then |
| 44 | echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image." |
| 45 | exit 1 |
| 46 | fi |
| 47 | |
| 48 | # Define the default value if it makes sense. |
| 49 | if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then |
| 50 | TRAMPOLINE_IMAGE_UPLOAD="" |
| 51 | fi |
| 52 | |
| 53 | if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then |
| 54 | TRAMPOLINE_IMAGE="" |
| 55 | fi |
| 56 | |
| 57 | if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then |
| 58 | TRAMPOLINE_DOCKERFILE="" |
| 59 | fi |
| 60 | |
| 61 | if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then |
| 62 | TRAMPOLINE_BUILD_FILE="" |
| 63 | fi |