File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 15
15
16
16
set -eo pipefail
17
17
18
- CURRENT_DIR=$( dirname " ${BASH_SOURCE[0]} " )
19
-
20
18
if [[ -z " ${PROJECT_ROOT:- } " ]]; then
21
- PROJECT_ROOT=$( realpath " ${CURRENT_DIR} /.. " )
19
+ PROJECT_ROOT=" github/python-bigquery "
22
20
fi
23
21
24
- pushd " ${PROJECT_ROOT} "
22
+ cd " ${PROJECT_ROOT} "
25
23
26
24
# Disable buffering, so that the logs stream through.
27
25
export PYTHONUNBUFFERED=1
@@ -30,16 +28,10 @@ export PYTHONUNBUFFERED=1
30
28
env | grep KOKORO
31
29
32
30
# 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
37
32
38
33
# 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" )
43
35
44
36
# If this is a continuous build, send the test log to the FlakyBot.
45
37
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
54
46
# If NOX_SESSION is set, it only runs the specified session,
55
47
# otherwise run all the sessions.
56
48
if [[ -n " ${NOX_SESSION:- } " ]]; then
57
- python3 -m nox -s ${NOX_SESSION:- }
49
+ python3 -m nox -s ${NOX_SESSION:- }
58
50
else
59
- python3 -m nox
51
+ python3 -m nox
60
52
fi
You can’t perform that action at this time.
0 commit comments