File tree Expand file tree Collapse file tree 8 files changed +28
-5
lines changed Expand file tree Collapse file tree 8 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ env_vars: {
6
6
value: " gcr.io/cloud-devrel-kokoro-resources/php56"
7
7
}
8
8
9
- # Give the docker image a unique project ID per PHP version
9
+ # Give the docker image a unique project ID and credentials per PHP version
10
10
env_vars: {
11
11
key: " GOOGLE_ALT_PROJECT_ID"
12
12
value: " php-docs-samples-php56"
13
13
}
14
+ env_vars: {
15
+ key: " GOOGLE_ALT_CREDENTIALS_FILENAME"
16
+ value: " service-account-php56.json"
17
+ }
Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ env_vars: {
6
6
value: " gcr.io/cloud-devrel-kokoro-resources/php70"
7
7
}
8
8
9
- # Give the docker image a unique project ID per PHP version
9
+ # Give the docker image a unique project ID and credentials per PHP version
10
10
env_vars: {
11
11
key: " GOOGLE_ALT_PROJECT_ID"
12
12
value: " php-docs-samples-php70"
13
13
}
14
+ env_vars: {
15
+ key: " GOOGLE_ALT_CREDENTIALS_FILENAME"
16
+ value: " service-account-php70.json"
17
+ }
Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ env_vars: {
6
6
value: " gcr.io/cloud-devrel-kokoro-resources/php71"
7
7
}
8
8
9
- # Give the docker image a unique project ID per PHP version
9
+ # Give the docker image a unique project ID and credentials per PHP version
10
10
env_vars: {
11
11
key: " GOOGLE_ALT_PROJECT_ID"
12
12
value: " php-docs-samples-php71"
13
13
}
14
+ env_vars: {
15
+ key: " GOOGLE_ALT_CREDENTIALS_FILENAME"
16
+ value: " service-account-php71.json"
17
+ }
Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ env_vars: {
6
6
value: " gcr.io/cloud-devrel-kokoro-resources/php72"
7
7
}
8
8
9
- # Give the docker image a unique project ID per PHP version
9
+ # Give the docker image a unique project ID and credentials per PHP version
10
10
env_vars: {
11
11
key: " GOOGLE_ALT_PROJECT_ID"
12
12
value: " php-docs-samples-php72"
13
13
}
14
+ env_vars: {
15
+ key: " GOOGLE_ALT_CREDENTIALS_FILENAME"
16
+ value: " service-account-php72.json"
17
+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ set -ex
20
20
cd github/php-docs-samples
21
21
22
22
export GOOGLE_APPLICATION_CREDENTIALS=$KOKORO_GFILE_DIR /service-account.json
23
+ export GOOGLE_ALT_APPLICATION_CREDENTIALS=$KOKORO_GFILE_DIR /$GOOGLE_ALT_CREDENTIALS_FILENAME
24
+
23
25
export PATH=" $PATH :/opt/composer/vendor/bin:/root/google-cloud-sdk/bin"
24
26
25
27
# export the secrets
Original file line number Diff line number Diff line change 1
1
# Modify this file with whitespace in a PR in order to run all tests for the PR.
2
2
# See "testing/run_test_suite.sh" for more details.
3
+ #
Original file line number Diff line number Diff line change @@ -87,7 +87,11 @@ run_tests()
87
87
fi
88
88
if [[ " ${ALT_PROJECT_TESTS[@]} " =~ " ${DIR} " ]] && [ ! -z " $GOOGLE_ALT_PROJECT_ID " ]; then
89
89
echo " Using alternate project $GOOGLE_ALT_PROJECT_ID "
90
- GCLOUD_PROJECT=$GOOGLE_ALT_PROJECT_ID GOOGLE_PROJECT_ID=$GOOGLE_ALT_PROJECT_ID GOOGLE_STORAGE_BUCKET=$GOOGLE_ALT_STORAGE_BUCKET $CMD
90
+ GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_ALT_APPLICATION_CREDENTIALS \
91
+ GCLOUD_PROJECT=$GOOGLE_ALT_PROJECT_ID \
92
+ GOOGLE_PROJECT_ID=$GOOGLE_ALT_PROJECT_ID \
93
+ GOOGLE_STORAGE_BUCKET=$GOOGLE_ALT_STORAGE_BUCKET \
94
+ $CMD
91
95
else
92
96
$CMD
93
97
fi
You can’t perform that action at this time.
0 commit comments