Skip to content

Commit 7e5b62a

Browse files
dpebotJustinBeckwith
authored andcommitted
Update CI config (#84)
1 parent 02feee5 commit 7e5b62a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • packages/google-cloud-texttospeech/.circleci

packages/google-cloud-texttospeech/.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:

0 commit comments

Comments
 (0)