Skip to content

Commit

Permalink
Update build project (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed authored Jun 16, 2020
1 parent e68cdba commit 005fc0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if ($env:APPVEYOR_REPO_BRANCH -eq "disabled") {
$javaWorkerVersion = $result.Split()[1]
Write-host "Adding Microsoft.Azure.Functions.JavaWorker $javaWorkerVersion to project" -ForegroundColor Green
Invoke-Expression -Command "dotnet add package Microsoft.Azure.Functions.JavaWorker -v $javaWorkerVersion -s https://ci.appveyor.com/NuGet/azure-functions-java-worker-fejnnsvmrkqg"

$result = Invoke-Expression -Command "NuGet list Microsoft.Azure.Functions.PowerShellWorker -Source https://ci.appveyor.com/nuget/azure-functions-powershell-wor-0842fakagqy6 -PreRelease"
$powerShellWorkerVersion = $result.Split()[1]
Write-host "Adding Microsoft.Azure.Functions.PowerShellWorker $powerShellWorkerVersion to project" -ForegroundColor Green
Expand All @@ -26,5 +26,5 @@ else {
Set-Location ".\build"
}

Invoke-Expression -Command "dotnet run"
Invoke-Expression -Command "dotnet run --ci"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
10 changes: 5 additions & 5 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ static void Main(string[] args)
.CreateForTarget(args)
.Then(TestSignedArtifacts, skip: !args.Contains("--signTest"))
.Then(Clean)
.Then(LogIntoAzure)
.Then(LogIntoAzure, skip: !args.Contains("--ci"))
.Then(RestorePackages)
.Then(ReplaceTelemetryInstrumentationKey)
.Then(ReplaceTelemetryInstrumentationKey, skip: !args.Contains("--ci"))
.Then(DotnetPublish)
.Then(FilterPowershellRuntimes)
.Then(AddDistLib)
.Then(AddTemplatesNupkgs)
.Then(AddTemplatesJson)
.Then(AddGoZip)
.Then(TestPreSignedArtifacts)
.Then(CopyBinariesToSign)
.Then(TestPreSignedArtifacts, skip: !args.Contains("--ci"))
.Then(CopyBinariesToSign, skip: !args.Contains("--ci"))
.Then(Test)
.Then(Zip)
.Then(UploadToStorage)
.Then(UploadToStorage, skip: !args.Contains("--ci"))
.Run();
}
}
Expand Down

0 comments on commit 005fc0f

Please sign in to comment.