From 6ad916781812d6070a28553d89f7bda8c802aeb7 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 10 Jan 2020 12:15:25 -0500 Subject: [PATCH] add copybara script & config GitOrigin-RevId: 3f8e5453ae75ef5724c00131a55e1315cef70841 --- tools/copybara/copy.bara.sky | 25 +++++++++++++++++++++++++ tools/copybara/copybara.sh | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 tools/copybara/copy.bara.sky create mode 100644 tools/copybara/copybara.sh diff --git a/tools/copybara/copy.bara.sky b/tools/copybara/copy.bara.sky new file mode 100644 index 0000000..bab74f6 --- /dev/null +++ b/tools/copybara/copy.bara.sky @@ -0,0 +1,25 @@ +sourceUrl = "git@github.com:mcmillen/sneak.git" +destinationUrl = "git@github.com:mcmillen/sneak-public.git" + +core.workflow( + name = "default", + mode = "ITERATIVE", + origin = git.origin( + url = sourceUrl, + ref = "master", + ), + destination = git.destination( + url = destinationUrl, + fetch = "master", + push = "master", + ), + # Change path to the folder you want to publish publicly + origin_files = glob(["tools/**", "Shared/**", "Jumpy.Shared/**"]), + + authoring = authoring.pass_thru("Unknown Author "), + + # Change the path here to the folder you want to publish publicly + #transformations = [ + # core.move("", ""), + #], +) diff --git a/tools/copybara/copybara.sh b/tools/copybara/copybara.sh new file mode 100644 index 0000000..c9abad1 --- /dev/null +++ b/tools/copybara/copybara.sh @@ -0,0 +1,6 @@ +#/bin/sh + +SCRIPT=$(readlink -f "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + +java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky