Skip to content

Commit 54a2f68

Browse files
author
Benjamin E. Coe
authored
build(owlbot): configuration for real-time OwlBot updates (#239)
1 parent c84c4a1 commit 54a2f68

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
docker:
15+
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
16+
copy-dirs:
17+
- source: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/src/*
18+
dest: /src
19+
strip-prefix: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/src
20+
- source: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/protos/google/cloud/phishingprotection/*
21+
dest: /protos/google/cloud
22+
strip-prefix: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/protos/google/cloud/phishingprotection
23+
- source: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/test/*
24+
dest: /test
25+
strip-prefix: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/test
26+
- source: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/system-test/*
27+
dest: /
28+
strip-prefix: /google/cloud/phishingprotection/*/phishingprotection-*-nodejs/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""This script is used to synthesize generated parts of this library."""
15+
16+
import synthtool as s
17+
import synthtool.gcp as gcp
18+
import synthtool.languages.node as node
19+
import logging
20+
21+
logging.basicConfig(level=logging.DEBUG)
22+
23+
# TODO: figure out a way to populate this dynamically:
24+
versions = ['v1beta1']
25+
26+
# Copy common templates
27+
common_templates = gcp.CommonTemplates()
28+
templates = common_templates.node_library(
29+
source_location='build/src', versions=versions, default_version='v1beta1')
30+
s.copy(templates)
31+
32+
node.postprocess_gapic_library_hermetic()

0 commit comments

Comments
 (0)