Skip to content

Commit dfce3da

Browse files
test: add functions_37 environment test config (#204)
1 parent 4eda681 commit dfce3da

File tree

6 files changed

+44
-2
lines changed

6 files changed

+44
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
11+
# Specify which tests to run
12+
env_vars: {
13+
key: "ENVIRONMENT"
14+
value: "functions"
15+
}
16+
17+
env_vars: {
18+
key: "RUNTIME"
19+
value: "python37"
20+
}
21+
22+
# Download trampoline resources.
23+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
24+
25+
# Download resources for system tests (service account key, etc.)
26+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
27+
28+
# Use the trampoline script to run in docker.
29+
build_file: "python-logging/.kokoro/trampoline_v2.sh"
30+
31+
# Configure the docker image for kokoro-trampoline.
32+
env_vars: {
33+
key: "TRAMPOLINE_IMAGE"
34+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
35+
}
36+
env_vars: {
37+
key: "TRAMPOLINE_BUILD_FILE"
38+
value: "github/python-logging/.kokoro/environment_tests.sh"
39+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto

.trampolinerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ required_envvars+=()
2020
# Add env vars which are passed down into the container here.
2121
pass_down_envvars+=(
2222
"ENVIRONMENT"
23+
"RUNTIME"
2324
"STAGING_BUCKET"
2425
"V2_STAGING_BUCKET"
2526
"NOX_SESSION"

synth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
s.replace(
7878
".trampolinerc",
7979
"pass_down_envvars\+\=\(",
80-
'pass_down_envvars+=(\n "ENVIRONMENT"'
80+
'pass_down_envvars+=(\n "ENVIRONMENT"\n "RUNTIME"'
8181
)
8282

8383
# don't lint environment tests

tests/environment

0 commit comments

Comments
 (0)