Skip to content

Commit 120bded

Browse files
Add synth script and update CI (#149)
1 parent a6ad6b0 commit 120bded

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

packages/google-cloud-compute/.circleci/config.yml

+7-4
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:

packages/google-cloud-compute/.jsdoc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright 2017 Google Inc. All Rights Reserved.
2+
* Copyright 2018 Google LLC. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ module.exports = {
3636
includePattern: '\\.js$'
3737
},
3838
templates: {
39-
copyright: 'Copyright 2017 Google, Inc.',
39+
copyright: 'Copyright 2018 Google, LLC.',
4040
includeDate: false,
4141
sourceFiles: false,
4242
systemName: '@google-cloud/compute',
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import synthtool as s
2+
import synthtool.gcp as gcp
3+
import logging
4+
5+
logging.basicConfig(level=logging.DEBUG)
6+
common_templates = gcp.CommonTemplates()
7+
templates = common_templates.node_library()
8+
s.copy(templates)

0 commit comments

Comments
 (0)