Skip to content

Commit 57aa898

Browse files
1 parent 25726a6 commit 57aa898

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

‎.kokoro/build.sh

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515

1616
set -eo pipefail
1717

18-
CURRENT_DIR=$(dirname "${BASH_SOURCE[0]}")
19-
2018
if [[ -z "${PROJECT_ROOT:-}" ]]; then
21-
PROJECT_ROOT=$(realpath "${CURRENT_DIR}/..")
19+
PROJECT_ROOT="github/python-bigquery"
2220
fi
2321

24-
pushd "${PROJECT_ROOT}"
22+
cd "${PROJECT_ROOT}"
2523

2624
# Disable buffering, so that the logs stream through.
2725
export PYTHONUNBUFFERED=1
@@ -30,16 +28,10 @@ export PYTHONUNBUFFERED=1
3028
env | grep KOKORO
3129

3230
# Setup service account credentials.
33-
if [[ -f "${KOKORO_GFILE_DIR}/service-account.json" ]]
34-
then
35-
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
36-
fi
31+
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
3732

3833
# Setup project id.
39-
if [[ -f "${KOKORO_GFILE_DIR}/project-id.json" ]]
40-
then
41-
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
42-
fi
34+
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
4335

4436
# If this is a continuous build, send the test log to the FlakyBot.
4537
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
@@ -54,7 +46,7 @@ fi
5446
# If NOX_SESSION is set, it only runs the specified session,
5547
# otherwise run all the sessions.
5648
if [[ -n "${NOX_SESSION:-}" ]]; then
57-
python3 -m nox -s ${NOX_SESSION:-}
49+
python3 -m nox -s ${NOX_SESSION:-}
5850
else
59-
python3 -m nox
51+
python3 -m nox
6052
fi

0 commit comments

Comments
 (0)