File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -21,16 +21,27 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
2121export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
2222export GOOGLE_CLOUD_PROJECT=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
2323
24- export RUNNING_SPANNER_BACKEND_TESTS=1
25-
26- if [[ $KOKORO_JOB_NAME == * " docs" * ]]
27- then
28- echo " Running docs generation."
29- # Remove old nox
30- python3 -m pip uninstall --yes --quiet nox-automation
31-
32- # Install nox
33- python3 -m pip install --upgrade --quiet nox
34- # Generate docs.
35- python3 -m nox -s docs docfx
24+ # Remove old nox
25+ python3 -m pip uninstall --yes --quiet nox-automation
26+
27+ # Install nox
28+ python3 -m pip install --upgrade --quiet nox
29+ python3 -m nox --version
30+
31+ # If this is a continuous build, send the test log to the FlakyBot.
32+ # See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
33+ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = * " continuous" * ]]; then
34+ cleanup () {
35+ chmod +x $KOKORO_GFILE_DIR /linux_amd64/flakybot
36+ $KOKORO_GFILE_DIR /linux_amd64/flakybot
37+ }
38+ trap cleanup EXIT HUP
39+ fi
40+
41+ # If NOX_SESSION is set, it only runs the specified session,
42+ # otherwise run all the sessions.
43+ if [[ -n " ${NOX_SESSION:- } " ]]; then
44+ python3 -m nox -s ${NOX_SESSION:- }
45+ else
46+ python3 -m nox
3647fi
You can’t perform that action at this time.
0 commit comments