diff options
Diffstat (limited to '.kokoro/build.sh')
-rwxr-xr-x | .kokoro/build.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 5390f03..adc4be4 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -36,4 +36,10 @@ python3.6 -m pip uninstall --yes --quiet nox-automation python3.6 -m pip install --upgrade --quiet nox python3.6 -m nox --version -python3.6 -m nox +# If NOX_SESSION is set, it only runs the specified session, +# otherwise run all the sessions. +if [[ -n "${NOX_SESSION:-}" ]]; then + python3.6 -m nox -s "${NOX_SESSION:-}" +else + python3.6 -m nox +fi |