Skip to content

Commit e7e033f

Browse files
ci(spanner): use airlock for presubmit jobs
1 parent 592047f commit e7e033f

File tree

4 files changed

+101
-3
lines changed

4 files changed

+101
-3
lines changed

.kokoro/build.sh

+16
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
4646
trap cleanup EXIT HUP
4747
fi
4848

49+
if [[ $USE_AIRLOCK = 'true' ]]; then
50+
cat > $HOME/.pypirc <<EOL
51+
[distutils]
52+
index-servers =
53+
python-3p-trusted
54+
55+
[python-3p-trusted]
56+
repository = https://us-python.pkg.dev/artifact-foundry-prod/python-3p-trusted/
57+
EOL
58+
mkdir -p $HOME/.config/pip
59+
cat > $HOME/.config/pip/pip.conf <<EOL
60+
[global]
61+
index-url = https://us-python.pkg.dev/artifact-foundry-prod/python-3p-trusted/simple/
62+
EOL
63+
fi
64+
4965
# If NOX_SESSION is set, it only runs the specified session,
5066
# otherwise run all the sessions.
5167
if [[ -n "${NOX_SESSION:-}" ]]; then

.kokoro/presubmit/system-3.8.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
env_vars: {
55
key: "NOX_SESSION"
66
value: "system-3.8"
7+
}
8+
9+
env_vars: {
10+
key: "USE_AIRLOCK"
11+
value: "true"
712
}

0 commit comments

Comments
 (0)