Skip to content

Commit 4ff3cf7

Browse files
committed
add TEST_WITH_EXISTING env which allows easy testing with existing kokoro job
1 parent a46f85a commit 4ff3cf7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

monorepo-migration/migrate.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ EOF
233233
IFS="$OLD_IFS"
234234
fi
235235

236+
if [ "${TEST_WITH_EXISTING:-false}" = "true" ]; then
237+
echo "Copying to logging-integration.cfg for testing..."
238+
cp "$TARGET_INTEGRATION_CFG" ".kokoro/presubmit/logging-integration.cfg"
239+
git add ".kokoro/presubmit/logging-integration.cfg"
240+
fi
241+
236242
echo "Committing split integration config..."
237243
git add "$TARGET_INTEGRATION_CFG"
238244
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): create split integration config"
@@ -287,6 +293,12 @@ EOF
287293
IFS="$OLD_IFS"
288294
fi
289295

296+
if [ "${TEST_WITH_EXISTING:-false}" = "true" ]; then
297+
echo "Copying to logging-graalvm-native-presubmit.cfg for testing..."
298+
cp "$TARGET_GRAALVM_CFG" ".kokoro/presubmit/logging-graalvm-native-presubmit.cfg"
299+
git add ".kokoro/presubmit/logging-graalvm-native-presubmit.cfg"
300+
fi
301+
290302
echo "Committing split GraalVM config..."
291303
git add "$TARGET_GRAALVM_CFG"
292304
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): create split GraalVM config"

0 commit comments

Comments
 (0)