Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 43b186e

Browse files
committed
fix: updated .kokoro/build.sh for nox usage
1 parent 397283c commit 43b186e

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.kokoro/build.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,20 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
2929
# Setup project id.
3030
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
3131

32-
# Install tox
33-
python3.6 -m pip install --upgrade --quiet tox flake8 isort
34-
python3.6 -m tox --version
32+
# Remove old nox
33+
python3.6 -m pip uninstall --yes --quiet nox-automation
3534

36-
python3.6 -m tox
37-
python3.6 -m isort --recursive --check-only --diff
38-
python3.6 -m flake8
35+
# Install nox
36+
python3.6 -m pip install --upgrade --quiet nox
37+
python3.6 -m nox --version
38+
39+
# If NOX_SESSION is set, it only runs the specified session,
40+
# otherwise run all the sessions.
41+
if [[ -n "${NOX_SESSION:-}" ]]; then
42+
python3.6 -m nox -s "${NOX_SESSION:-}"
43+
else
44+
python3.6 -m nox
45+
fi
3946

4047
# Export essential environment variables for Django tests.
4148
export RUNNING_SPANNER_BACKEND_TESTS=1

0 commit comments

Comments
 (0)