File tree Expand file tree Collapse file tree 7 files changed +72
-2
lines changed
scripts/readme-gen/templates Expand file tree Collapse file tree 7 files changed +72
-2
lines changed Original file line number Diff line number Diff line change 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.7"
14+ }
15+
16+ # Declare build specific Cloud project.
17+ env_vars: {
18+ key: " BUILD_SPECIFIC_GCLOUD_PROJECT"
19+ value: " python-docs-samples-tests-py37"
20+ }
21+
22+ env_vars: {
23+ key: " TRAMPOLINE_BUILD_FILE"
24+ value: " github/python-api-core/.kokoro/test-samples.sh"
25+ }
26+
27+ # Configure the docker image for kokoro-trampoline.
28+ env_vars: {
29+ key: " TRAMPOLINE_IMAGE"
30+ value: " gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
31+ }
32+
33+ # Download secrets for samples
34+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
35+
36+ # Download trampoline resources.
37+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
38+
39+ # Use the trampoline script to run in docker.
40+ build_file: " python-api-core/.kokoro/trampoline_v2.sh"
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ env_vars: {
4+ key: " INSTALL_LIBRARY_FROM_SOURCE"
5+ value: " True"
6+ }
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ env_vars: {
4+ key: " INSTALL_LIBRARY_FROM_SOURCE"
5+ value: " True"
6+ }
7+
8+ env_vars: {
9+ key: " TRAMPOLINE_BUILD_FILE"
10+ value: " github/python-api-core/.kokoro/test-samples-against-head.sh"
11+ }
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ env_vars: {
4+ key: " INSTALL_LIBRARY_FROM_SOURCE"
5+ value: " False"
6+ }
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ env_vars: {
4+ key: " INSTALL_LIBRARY_FROM_SOURCE"
5+ value: " True"
6+ }
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export PYTHONUNBUFFERED=1
3333env | grep KOKORO
3434
3535# Install nox
36- python3.9 -m pip install --upgrade --quiet nox
36+ # `virtualenv==20.26.6` is added for Python 3.7 compatibility
37+ python3.9 -m pip install --upgrade --quiet nox virtualenv==20.26.6
3738
3839# Use secrets acessor service account to get secrets
3940if [[ -f " ${KOKORO_GFILE_DIR} /secrets_viewer_service_account.json" ]]; then
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Install Dependencies
1212 .. _Python Development Environment Setup Guide :
1313 https://cloud.google.com/python/setup
1414
15- #. Create a virtualenv. Samples are compatible with Python 3.8 +.
15+ #. Create a virtualenv. Samples are compatible with Python 3.7 +.
1616
1717 .. code-block :: bash
1818
You can’t perform that action at this time.
0 commit comments