File tree Expand file tree Collapse file tree 9 files changed +51
-49
lines changed Expand file tree Collapse file tree 9 files changed +51
-49
lines changed Original file line number Diff line number Diff line change 1515
1616set -eo pipefail
1717
18+ CURRENT_DIR=$( dirname " ${BASH_SOURCE[0]} " )
19+
1820if [[ -z " ${PROJECT_ROOT:- } " ]]; then
19- PROJECT_ROOT=" github/python-bigquery "
21+ PROJECT_ROOT=$( realpath " ${CURRENT_DIR} /.. " )
2022fi
2123
22- cd " ${PROJECT_ROOT} "
24+ pushd " ${PROJECT_ROOT} "
2325
2426# Disable buffering, so that the logs stream through.
2527export PYTHONUNBUFFERED=1
@@ -28,10 +30,16 @@ export PYTHONUNBUFFERED=1
2830env | grep KOKORO
2931
3032# Setup service account credentials.
31- export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
33+ if [[ -f " ${KOKORO_GFILE_DIR} /service-account.json" ]]
34+ then
35+ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
36+ fi
3237
3338# Setup project id.
34- export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
39+ if [[ -f " ${KOKORO_GFILE_DIR} /project-id.json" ]]
40+ then
41+ export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
42+ fi
3543
3644# If this is a continuous build, send the test log to the FlakyBot.
3745# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
4654# If NOX_SESSION is set, it only runs the specified session,
4755# otherwise run all the sessions.
4856if [[ -n " ${NOX_SESSION:- } " ]]; then
49- python3 -m nox -s ${NOX_SESSION:- }
57+ python3 -m nox -s ${NOX_SESSION:- }
5058else
51- python3 -m nox
59+ python3 -m nox
5260fi
Original file line number Diff line number Diff line change 11# Format: //devtools/kokoro/config/proto/build.proto
22
33# Build logs will be here
4- action {
5- define_artifacts {
6- regex: " **/*sponge_log.xml"
7- }
4+ # action {
5+ # define_artifacts {
6+ # regex: "**/*sponge_log.xml"
7+ # }
8+ # }
9+
10+ container_properties {
11+ docker_image: " us-central1-docker.pkg.dev/chingor-test/testing-images/python-multi@sha256:c6e49e2dabfb0a892f30fea57045575860f8804d8c838505341bb8e92f443705"
812}
913
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-bigquery/.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-bigquery/.kokoro/build.sh"
27- }
14+ build_file: " python-bigquery/.kokoro/build.sh"
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run these nox sessions.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " lint lint_setup_py blacken mypy mypy_samples pytype"
6+ key: " NOX_SESSION"
7+ value: " lint lint_setup_py blacken mypy mypy_samples pytype"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run this nox session.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " prerelease_deps"
6+ key: " NOX_SESSION"
7+ value: " prerelease_deps"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Disable system tests.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " unit_noextras unit cover docs docfx"
6+ key: " NOX_SESSION"
7+ value: " unit_noextras unit cover docs docfx"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run this nox session.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " snippets-3.12"
6+ key: " NOX_SESSION"
7+ value: " snippets-3.12"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run this nox session.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " snippets-3.8"
6+ key: " NOX_SESSION"
7+ value: " snippets-3.8"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run this nox session.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " system-3.12"
6+ key: " NOX_SESSION"
7+ value: " system-3.12"
78}
Original file line number Diff line number Diff line change 1- # Format: //devtools/kokoro/config/proto/build.proto
1+ # proto-file: //devtools/kokoro/config/proto/build.proto
2+ # proto-message: BuildConfig
23
34# Only run this nox session.
45env_vars: {
5- key: " NOX_SESSION"
6- value: " system-3.8"
6+ key: " NOX_SESSION"
7+ value: " system-3.8"
78}
You can’t perform that action at this time.
0 commit comments