Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
trap cleanup EXIT HUP
fi

if [[ $USE_AIRLOCK = 'true' ]]; then
cat > $HOME/.pypirc <<EOL
[distutils]
index-servers =
python-3p-trusted

[python-3p-trusted]
repository = https://us-python.pkg.dev/artifact-foundry-prod/python-3p-trusted/
EOL
mkdir -p $HOME/.config/pip
cat > $HOME/.config/pip/pip.conf <<EOL
[global]
index-url = https://us-python.pkg.dev/artifact-foundry-prod/python-3p-trusted/simple/
EOL
fi

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions .kokoro/presubmit/system-3.8.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@
env_vars: {
key: "NOX_SESSION"
value: "system-3.8"
}

env_vars: {
key: "USE_AIRLOCK"
value: "true"
}
Loading
Loading