v8/tools/cppgc/copy.bara.sky
Anton Bikineev 4f0b79eeda cppgc: mirror: Add copybara and migration scripts
The CL add two files:
1) copy.bara.sky - source file for copybara that needs to migrate cppgc
from v8 repo to GitHub;
2) export_to_github.sh - top level bash script that runs copybara and
generates CMake files if needed.

Bug: v8:10724
Change-Id: I6a5f0ed1d007533914d578203a37fab2c3e9774a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2320651
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69123}
2020-07-29 11:53:33 +00:00

42 lines
1.3 KiB
Plaintext

# Copyright 2020 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
INTERESTING_PATHS = [
'AUTHORS',
'CODE_OF_CONDUCT.md',
'LICENSE',
'samples/cppgc/**',
'src/base/**',
'src/heap/base/**',
'src/heap/cppgc/**',
'include/cppgc/**',
'include/v8config.h',
'include/v8-platform.h',
'testing/**',
'test/unittests/heap/cppgc/**',
]
origin_url = 'https://chromium.googlesource.com/v8/v8.git'
# TODO(v8:10724): Add GitHub destination url.
destination_url = 'TODO'
# This workflow syncs cppgc source inside V8's googlesource repo with GitHub.
core.workflow(
name='default',
origin=git.origin(
url=origin_url,
ref='master',
),
destination=git.destination(url=destination_url, ),
origin_files=glob(INTERESTING_PATHS,
exclude=['samples/cppgc/cppgc-for-v8-embedders.cc']),
destination_files=glob(['**'], exclude=['CMakeLists.txt', 'cmake/**']),
mode='SQUASH',
authoring=authoring.pass_thru('V8 Team <v8-dev@googlegroups.com>'),
transformations=[
metadata.squash_notes(prefix='Export of V8 changes from ' +
origin_url + '\n\nList of included changes:\n\n')
]
)