Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c3ff7d

Browse filesBrowse files
skuruppularkee
andauthored
chore: setup kokoro build.sh to run all jobs (googleapis#131)
Co-authored-by: larkee <31196561+larkee@users.noreply.github.com>
1 parent 2243bd5 commit 1c3ff7d
Copy full SHA for 1c3ff7d

File tree

Expand file treeCollapse file tree

1 file changed

+23
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+23
-12
lines changed
Open diff view settings
Collapse file

‎.kokoro/build.sh‎

Copy file name to clipboardExpand all lines: .kokoro/build.sh
+23-12Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,27 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
2121
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
2222
export 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
3647
fi

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.