| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 84236e4 commit 4a5c2ee
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,5 +13,5 @@ | |||
| 13 | 13 | # limitations under the License. | |
| 14 | 14 | docker: | |
| 15 | 15 | image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest | |
| 16 | - digest: sha256:04c35dc5f49f0f503a306397d6d043685f8d2bb822ab515818c4208d7fb2db3a | ||
| 17 | - # created: 2025-01-16T15:24:11.364245182Z | ||
| 16 | + digest: sha256:f016446d6e520e5fb552c45b110cba3f217bffdd3d06bdddd076e9e6d13266cf | ||
| 17 | + # created: 2025-02-21T19:32:52.01306189Z | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,11 +15,13 @@ | |||
| 15 | 15 | ||
| 16 | 16 | set -eo pipefail | |
| 17 | 17 | ||
| 18 | + CURRENT_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
| 19 | + | ||
| 18 | 20 | if [[ -z "${PROJECT_ROOT:-}" ]]; then | |
| 19 | - PROJECT_ROOT="github/python-bigquery-sqlalchemy" | ||
| 21 | + PROJECT_ROOT=$(realpath "${CURRENT_DIR}/..") | ||
| 20 | 22 | fi | |
| 21 | 23 | ||
| 22 | - cd "${PROJECT_ROOT}" | ||
| 24 | + pushd "${PROJECT_ROOT}" | ||
| 23 | 25 | ||
| 24 | 26 | # Disable buffering, so that the logs stream through. | |
| 25 | 27 | export PYTHONUNBUFFERED=1 | |
@@ -28,10 +30,16 @@ export PYTHONUNBUFFERED=1 | |||
| 28 | 30 | env | grep KOKORO | |
| 29 | 31 | ||
| 30 | 32 | # 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 | ||
| 32 | 37 | ||
| 33 | 38 | # 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 | ||
| 35 | 43 | ||
| 36 | 44 | # If this is a continuous build, send the test log to the FlakyBot. | |
| 37 | 45 | # See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot. | |
@@ -46,7 +54,7 @@ fi | |||
| 46 | 54 | # If NOX_SESSION is set, it only runs the specified session, | |
| 47 | 55 | # otherwise run all the sessions. | |
| 48 | 56 | if [[ -n "${NOX_SESSION:-}" ]]; then | |
| 49 | - python3 -m nox -s ${NOX_SESSION:-} | ||
| 57 | + python3 -m nox -s ${NOX_SESSION:-} | ||
| 50 | 58 | else | |
| 51 | - python3 -m nox | ||
| 59 | + python3 -m nox | ||
| 52 | 60 | fi | |
| Back | FazBrowse Home | New Git URL |
0 commit comments