Skip to content

Commit 99779ea

Browse files
committed
fix: move samples into samples/snippets
1 parent 8d67c22 commit 99779ea

51 files changed

Lines changed: 583 additions & 1119 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pip-log.txt
2828
.nox
2929
.cache
3030
.pytest_cache
31-
sponge_log.xml
31+
3232

3333
# Mac
3434
.DS_Store

.kokoro/periodic/common.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Download resources for system tests (service account key, etc.)
14+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
15+
16+
# Use the trampoline script to run in docker.
17+
build_file: "python-texttospeech/.kokoro/trampoline.sh"
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-multi"
23+
}
24+
env_vars: {
25+
key: "TRAMPOLINE_BUILD_FILE"
26+
value: "github/python-texttospeech/.kokoro/build.sh"
27+
}

.kokoro/samples/lint/common.cfg

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
# Specify which tests to run
11+
env_vars: {
12+
key: "RUN_TESTS_SESSION"
13+
value: "lint"
14+
}
15+
16+
env_vars: {
17+
key: "TRAMPOLINE_BUILD_FILE"
18+
value: "github/python-texttospeech/.kokoro/test-samples.sh"
19+
}
20+
21+
# Configure the docker image for kokoro-trampoline.
22+
env_vars: {
23+
key: "TRAMPOLINE_IMAGE"
24+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
25+
}
26+
27+
# Download secrets for samples
28+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
29+
30+
# Download trampoline resources.
31+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
32+
33+
# Use the trampoline script to run in docker.
34+
build_file: "python-texttospeech/.kokoro/trampoline.sh"
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
env_vars: {
44
key: "INSTALL_LIBRARY_FROM_SOURCE"
55
value: "True"
6-
}
7-
8-
env_vars: {
9-
key: "TRAMPOLINE_BUILD_FILE"
10-
value: "github/python-texttospeech/.kokoro/test-samples.sh"
116
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
env_vars: {
44
key: "INSTALL_LIBRARY_FROM_SOURCE"
55
value: "False"
6-
}
7-
8-
env_vars: {
9-
key: "TRAMPOLINE_BUILD_FILE"
10-
value: "github/python-texttospeech/.kokoro/test-samples.sh"
116
}

.kokoro/samples/lint/presubmit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "True"
6+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
# Specify which tests to run
11+
env_vars: {
12+
key: "RUN_TESTS_SESSION"
13+
value: "py-3.6"
14+
}
15+
16+
env_vars: {
17+
key: "TRAMPOLINE_BUILD_FILE"
18+
value: "github/python-texttospeech/.kokoro/test-samples.sh"
19+
}
20+
21+
# Configure the docker image for kokoro-trampoline.
22+
env_vars: {
23+
key: "TRAMPOLINE_IMAGE"
24+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
25+
}
26+
27+
# Download secrets for samples
28+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
29+
30+
# Download trampoline resources.
31+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
32+
33+
# Use the trampoline script to run in docker.
34+
build_file: "python-texttospeech/.kokoro/trampoline.sh"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ env_vars: {
55
value: "True"
66
}
77

8-
env_vars: {
9-
key: "TRAMPOLINE_BUILD_FILE"
10-
value: "github/python-texttospeech/.kokoro/test-samples.sh"
11-
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "INSTALL_LIBRARY_FROM_SOURCE"
5+
value: "False"
6+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
env_vars: {
11+
key: "INSTALL_LIBRARY_FROM_SOURCE"
12+
value: "True"
13+
}
14+
15+
env_vars: {
16+
key: "TRAMPOLINE_BUILD_FILE"
17+
value: "github/python-texttospeech/.kokoro/test-samples.sh"
18+
}
19+
20+
# Configure the docker image for kokoro-trampoline.
21+
env_vars: {
22+
key: "TRAMPOLINE_IMAGE"
23+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
24+
}
25+
26+
# Download secrets for samples
27+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
28+
29+
# Download trampoline resources.
30+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
31+
32+
# Use the trampoline script to run in docker.
33+
build_file: "python-texttospeech/.kokoro/trampoline.sh"

0 commit comments

Comments
 (0)