Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 365f2e4

Browse files
author
Takashi Matsuo
committed
add .trampolinerc_tmpl
1 parent f68a190 commit 365f2e4

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.trampolinerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ required_envvars+=(
2525
pass_down_envvars+=(
2626
"BUILD_SPECIFIC_GCLOUD_PROJECT"
2727
"REPORT_TO_BUILD_COP_BOT"
28-
# The nox session to run.
28+
# Target directories.
2929
"RUN_TESTS_DIRS"
30+
# The nox session to run.
3031
"RUN_TESTS_SESSION"
3132
)
3233

.trampolinerc_tmpl

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
)
24+
25+
# Prevent unintentional override on the default image.
26+
if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
27+
[[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
28+
echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
29+
exit 1
30+
fi
31+
32+
if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
33+
TRAMPOLINE_IMAGE_UPLOAD="false"
34+
fi
35+
36+
if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
37+
# TRAMPOLINE_IMAGE="gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
38+
fi
39+
40+
if [[ -z "${TRAMPOLINE_IMAGE_SOURCE:-}" ]]; then
41+
# TRAMPOLINE_IMAGE_SOURCE=".kokoro/docker/Dockerfile"
42+
fi
43+
44+
if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
45+
# TRAMPOLINE_BUILD_FILE=".kokoro/build.sh"
46+
fi

0 commit comments

Comments
 (0)