-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(build) Update bootstrappers to latest version
- Loading branch information
1 parent
c543e83
commit 4fef82d
Showing
2 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$ErrorActionPreference = 'Stop' | ||
|
||
function Run([string[]]$arguments) { | ||
$proc = Start-Process "dotnet" $arguments -PassThru -NoNewWindow | ||
Wait-Process -InputObject $proc | ||
Set-Location -LiteralPath $PSScriptRoot | ||
|
||
if ($proc.ExitCode -ne 0) { | ||
"Non-Zero exit code ($($proc.ExitCode)), exiting..." | ||
exit $proc.ExitCode | ||
} | ||
} | ||
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1' | ||
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1' | ||
$env:DOTNET_NOLOGO = '1' | ||
|
||
Run tool, restore | ||
dotnet tool restore | ||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
|
||
Run cake, recipe.cake, --bootstrap | ||
dotnet cake recipe.cake --bootstrap | ||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
|
||
$arguments = @("cake"; "recipe.cake") | ||
$arguments += @($args) | ||
|
||
Run $arguments | ||
dotnet cake recipe.cake @args | ||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters