File tree Expand file tree Collapse file tree
packages/google-cloud-texttospeech/.circleci Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments