Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 04e666a

Browse files
Update CI config (#522)
1 parent 8e6cf9b commit 04e666a

File tree

13 files changed

+30
-11
lines changed

13 files changed

+30
-11
lines changed

.circleci/config.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,24 @@ jobs:
149149
name: Decrypt credentials.
150150
command: |
151151
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
152-
openssl aes-256-cbc -d -in .circleci/key.json.enc \
153-
-out .circleci/key.json \
154-
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
152+
for encrypted_key in .circleci/*.json.enc; do
153+
openssl aes-256-cbc -d -in $encrypted_key \
154+
-out $(echo $encrypted_key | sed 's/\.enc//') \
155+
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
156+
done
155157
fi
156158
- run: *npm_install_and_link
157159
- run:
158160
name: Run system tests.
159161
command: npm run system-test
160162
environment:
163+
GCLOUD_PROJECT: long-door-651
161164
GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json
162165
- run:
163166
name: Remove unencrypted key.
164167
command: |
165168
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
166-
rm .circleci/key.json
169+
rm .circleci/*.json
167170
fi
168171
when: always
169172
publish_npm:

.kokoro/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/continuous/node10/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/continuous/node6/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:6"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:6-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/continuous/node8/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:8"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/docs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
set -xeo pipefail
1818

19+
export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
1921
cd $(dirname $0)/..
2022

2123
npm install

.kokoro/lint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
set -xeo pipefail
1818

19+
export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
1921
cd $(dirname $0)/..
2022

2123
npm install

.kokoro/presubmit/node10/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/presubmit/node6/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:6"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:6-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

.kokoro/presubmit/node8/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616
# Configure the docker image for kokoro-trampoline.
1717
env_vars: {
1818
key: "TRAMPOLINE_IMAGE"
19-
value: "gcr.io/cloud-devrel-kokoro-resources/node:8"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user"
2020
}
2121
env_vars: {
2222
key: "TRAMPOLINE_BUILD_FILE"

0 commit comments

Comments
 (0)