aboutsummaryrefslogtreecommitdiff
path: root/.kokoro/build.sh
diff options
context:
space:
mode:
authorYoshi Automation Bot <yoshi-automation@google.com>2021-01-15 11:07:01 -0800
committerGitHub <noreply@github.com>2021-01-15 14:07:01 -0500
commit84cfb979a6c5f51b3e0b593dd5bacffa4471b48e (patch)
treefa01cfaeb900cf7c96eeed4f5bdc5384221e54fa /.kokoro/build.sh
parent30211b4a8c6a1979ed9c67c129792ccd80128b45 (diff)
downloadpython-api-core-84cfb979a6c5f51b3e0b593dd5bacffa4471b48e.tar.gz
chore: tweak kokoro config (via synth) (#129)
* chore(python): skip docfx in main presubmit * chore(python): skip docfx in main presubmit * fix: properly template the repo name Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Fri Jan 8 10:32:13 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: fb53b6fb373b7c3edf4e55f3e8036bc6d73fa483 Source-Link: https://github.com/googleapis/synthtool/commit/fb53b6fb373b7c3edf4e55f3e8036bc6d73fa483 * chore: add missing quotation mark Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Mon Jan 11 09:43:06 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: 16ec872dd898d7de6e1822badfac32484b5d9031 Source-Link: https://github.com/googleapis/synthtool/commit/16ec872dd898d7de6e1822badfac32484b5d9031
Diffstat (limited to '.kokoro/build.sh')
-rwxr-xr-x.kokoro/build.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index adc4be4..41a88d5 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -15,7 +15,11 @@
set -eo pipefail
-cd github/python-api-core
+if [[ -z "${PROJECT_ROOT:-}" ]]; then
+ PROJECT_ROOT="github/python-api-core"
+fi
+
+cd "${PROJECT_ROOT}"
# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1
@@ -30,16 +34,16 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
# Remove old nox
-python3.6 -m pip uninstall --yes --quiet nox-automation
+python3 -m pip uninstall --yes --quiet nox-automation
# Install nox
-python3.6 -m pip install --upgrade --quiet nox
-python3.6 -m nox --version
+python3 -m pip install --upgrade --quiet nox
+python3 -m nox --version
# 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:-}"
+ python3 -m nox -s ${NOX_SESSION:-}
else
- python3.6 -m nox
+ python3 -m nox
fi