Skip to content

Commit

Permalink
build: leave .kokoro files so sample tests will still run, add a few …
Browse files Browse the repository at this point in the history
…more possible files to look for when migrating (#3392)

* build: leave .kokoro files so sample tests will still run, add a few more possible test files
  • Loading branch information
sofisl authored Oct 11, 2022
1 parent dbe2fff commit 571b4be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ git checkout -b 'deleteMostOfLibrary'

shopt -s extglob

# Delete everything first that's not the samples, README.md, and git folder
rm -rf !("samples"|"README.md"|".git")
rm -rf "/tmp/${SPLIT_REPO}/.[!.git]*"
# Delete everything first that's not the samples, README.md, .kokoro folder, and git folder
rm -rf !("samples"|"README.md"|".git"|".kokoro")
rm -rf "/tmp/${SPLIT_REPO}/.[!.git|!.kokoro]*"
rm -rf "/tmp/${SPLIT_REPO}/.github"

IGNORE_README_TXT="# Copyright 2022 Google LLC
Expand Down
4 changes: 2 additions & 2 deletions bin/migrate-split-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ${SCRIPT_DIR}/migrate-git-history.sh \
"" \
"${PACKAGE_PATH}" \
".kokoro,.github,.trampolinerc,SECURITY.md,renovate.json,samples" \
".github/.OwlBot.yaml,samples/quickstart.js,samples/test/quickstart.js,samples/test/quickstart.test.js,system-test/test/quickstart.test.js,system-test/test/quickstart.js,samples/README.md,samples/package.json,samples/generated"
".github/.OwlBot.yaml,samples/quickstart.js,samples/test/quickstart.js,samples/.eslintrc.yml,samples/test/sample.test.js,samples/test/quickstart.test.js,system-test/test/quickstart.test.js,system-test/test/quickstart.js,samples/README.md,samples/package.json,samples/generated"

# run the script to update the split repo and either delete all the samples or just update the README
${SCRIPT_DIR}/delete-samples-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME}
${SCRIPT_DIR}/delete-everything-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME}
${SCRIPT_DIR}/update-readme-only-split-repo.sh ${SPLIT_REPO} ${ARTIFACT_NAME}

0 comments on commit 571b4be

Please sign in to comment.