Skip to content

Commit 8501884

Browse files
committed
feat: detect errors early in CopyDist
1 parent cce2486 commit 8501884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CopyDist.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ $RunCopyTargets = @(
1313
git clean dist -fdx *> CopyDist.log
1414

1515
Write-Progress -Status "Building copy targets..." -Activity "Copying distribution files"
16-
bazel build $RunCopyTargets *>> CopyDist.log
16+
bazel build $RunCopyTargets -k *>> CopyDist.log
1717

1818
foreach($Target in $RunCopyTargets)
1919
{
2020
Write-Progress -Status "$Target" -Activity "Copying distribution files"
2121
bazel run --ui_event_filters=-info --noshow_progress $Target *>> CopyDist.log
22+
if(-not $?)
23+
{
24+
throw "$Target failed. Check ./CopyDist.log for more details."
25+
}
2226
}

0 commit comments

Comments
 (0)