Skip to content

Commit

Permalink
Updates build script
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaMarkic committed Mar 14, 2021
1 parent 70f371b commit 9ca3c3c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ $SCRIPT_NAME = "recipe.cake"
Write-Host "Restoring .NET Core tools"
dotnet tool restore
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
[string[]]$ScriptArgs

Write-Host "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
return $null

Write-Host "Running Build"
dotnet cake $SCRIPT_NAME @args
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
exit $LASTEXITCODE
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

0 comments on commit 9ca3c3c

Please sign in to comment.