-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from max-ieremenko/release/1.4.1
Release/1.4.1
- Loading branch information
Showing
165 changed files
with
2,865 additions
and
1,942 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
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
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
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,74 +1,72 @@ | ||
Task default -Depends Clean, Init, Build, ThirdPartyNotices, UnitTest, Pack, PackTest, SdkTest, Benchmarks | ||
Task UnitTest -Depends UnitTest461, UnitTestCore31, UnitTestNet50, UnitTestNet60 | ||
Task SdkTest -Depends SdkTestBasic, SdkTestServerFilters, SdkTestMessagePack | ||
|
||
Task Clean { | ||
$dir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "..\build-out")) | ||
if (Test-Path $dir) { | ||
Remove-Item -Path $dir -Recurse -Force | ||
. (Join-Path $PSScriptRoot "scripts/Import-All.ps1") | ||
|
||
Enter-Build { | ||
$settings = @{ | ||
build = Get-FullPath $PSScriptRoot; | ||
sources = Get-FullPath (Join-Path $PSScriptRoot "..\Sources"); | ||
examples = Get-FullPath (Join-Path $PSScriptRoot "..\Examples"); | ||
benchmarks = Get-FullPath (Join-Path $PSScriptRoot "..\Benchmarks"); | ||
buildOut = Get-FullPath (Join-Path $PSScriptRoot "..\build-out"); | ||
thirdParty = Get-FullPath (Join-Path $PSScriptRoot "third-party-libraries"); | ||
} | ||
} | ||
|
||
$dir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "..\Sources")) | ||
Get-ChildItem -Path $dir -Filter bin -Directory -Recurse | Remove-Item -Recurse -Force | ||
Get-ChildItem -Path $dir -Filter obj -Directory -Recurse | Remove-Item -Recurse -Force | ||
task Default Clean, Init, Build, ThirdPartyNotices, UnitTest, Pack, PackTest, SdkTest, Benchmarks | ||
task UnitTest UnitTest461, UnitTestCore31, UnitTestNet50, UnitTestNet60 | ||
|
||
$dir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "..\Examples")) | ||
Get-ChildItem -Path $dir -Filter bin -Directory -Recurse | Remove-Item -Recurse -Force | ||
Get-ChildItem -Path $dir -Filter obj -Directory -Recurse | Remove-Item -Recurse -Force | ||
task Clean { | ||
Remove-DirectoryRecurse -Path $settings.buildOut | ||
|
||
$dir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "..\Benchmarks")) | ||
Get-ChildItem -Path $dir -Filter bin -Directory -Recurse | Remove-Item -Recurse -Force | ||
Get-ChildItem -Path $dir -Filter obj -Directory -Recurse | Remove-Item -Recurse -Force | ||
} | ||
Remove-DirectoryRecurse -Path $settings.sources -Filters "bin", "obj" | ||
Remove-DirectoryRecurse -Path $settings.examples -Filters "bin", "obj" | ||
Remove-DirectoryRecurse -Path $settings.benchmarks -Filters "bin", "obj" | ||
|
||
Task Init { | ||
$env:GITHUB_SHA = Exec { git rev-parse HEAD } | ||
Get-ChildItem -Path (Join-Path $env:USERPROFILE ".nuget\packages") -Filter "servicemodel.grpc*" -Directory | Remove-Item -Force -Recurse | ||
} | ||
|
||
Task Build { | ||
Exec { .\step-build.ps1 } | ||
task Init { | ||
$env:GITHUB_SHA = exec { git rev-parse HEAD } | ||
} | ||
|
||
Task UnitTest461 { | ||
Exec { .\step-unit-test.ps1 -Framework net461 } | ||
task Build { | ||
Invoke-Build -File "step-build.ps1" -Settings $settings | ||
} | ||
|
||
Task UnitTestCore31 { | ||
Exec { .\step-unit-test.ps1 -Framework netcoreapp3.1 } | ||
task UnitTest461 { | ||
Invoke-Build -File "step-unit-test.ps1" -Settings $settings -Framework net461 | ||
} | ||
|
||
Task UnitTestNet50 { | ||
Exec { .\step-unit-test.ps1 -Framework net5.0 } | ||
task UnitTestCore31 { | ||
Invoke-Build -File "step-unit-test.ps1" -Settings $settings -Framework netcoreapp3.1 | ||
} | ||
|
||
Task UnitTestNet60 { | ||
Exec { .\step-unit-test.ps1 -Framework net6.0 } | ||
task UnitTestNet50 { | ||
Invoke-Build -File "step-unit-test.ps1" -Settings $settings -Framework net5.0 | ||
} | ||
|
||
Task ThirdPartyNotices { | ||
Exec { .\step-third-party-notices.ps1 } | ||
task UnitTestNet60 { | ||
Invoke-Build -File "step-unit-test.ps1" -Settings $settings -Framework net6.0 | ||
} | ||
|
||
Task Pack { | ||
Exec { .\step-pack.ps1 } | ||
task ThirdPartyNotices { | ||
Invoke-Build -File "step-third-party-notices.ps1" -Settings $settings | ||
} | ||
|
||
Task PackTest { | ||
Exec { .\step-pack-test.ps1 } | ||
task Pack { | ||
Invoke-Build -File "step-pack.ps1" -Settings $settings | ||
} | ||
|
||
Task SdkTestBasic { | ||
Exec { .\step-sdk-test-basic-locally.ps1 } | ||
task PackTest { | ||
Invoke-Build -File "step-pack-test.ps1" -Settings $settings | ||
} | ||
|
||
Task SdkTestServerFilters { | ||
Exec { .\step-sdk-test-serverfilters-locally.ps1 } | ||
} | ||
|
||
Task SdkTestMessagePack { | ||
Exec { .\step-sdk-test-messagepack-locally.ps1 } | ||
task SdkTest { | ||
$tests = Get-ChildItem -Path (Join-Path $settings.build sdk-test) -Filter "*-locally.ps1" | ForEach-Object {$_.FullName} | ||
foreach ($test in $tests) { | ||
Invoke-Build -File $test -Settings $settings | ||
} | ||
} | ||
|
||
Task Benchmarks { | ||
Exec { .\step-benchmarks-locally.ps1 } | ||
task Benchmarks { | ||
Invoke-Build -File "step-benchmarks-locally.ps1" -Settings $settings | ||
} |
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,5 +1,8 @@ | ||
#Install-Module -Name psake | ||
#Requires -Modules @{ModuleName='psake'; RequiredVersion='4.9.0'} | ||
#Install-Module -Name InvokeBuild -RequiredVersion 5.8.6 | ||
#Requires -Modules @{ ModuleName="InvokeBuild"; RequiredVersion="5.8.6" } | ||
|
||
$psakeMain = Join-Path $PSScriptRoot "build-locally-tasks.ps1" | ||
Invoke-psake $psakeMain | ||
$ErrorActionPreference = "Stop" | ||
Set-StrictMode -Version Latest | ||
|
||
$main = Join-Path $PSScriptRoot "build-locally-tasks.ps1" | ||
Invoke-Build -File $main |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
. (Join-Path $PSScriptRoot "scripts/Import-All.ps1") | ||
|
||
Enter-Build { | ||
$settings = @{ | ||
build = Get-FullPath $PSScriptRoot; | ||
sources = Get-FullPath (Join-Path $PSScriptRoot "../Sources"); | ||
examples = Get-FullPath (Join-Path $PSScriptRoot "../Examples"); | ||
buildOut = Get-FullPath (Join-Path $PSScriptRoot "../build-out"); | ||
} | ||
} | ||
|
||
task Default Init, JustBuild, BuildAndRun | ||
|
||
task Init { | ||
exec { dotnet nuget add source $settings.buildOut } | ||
} | ||
|
||
task JustBuild { | ||
$examples = @( | ||
"CreateClientAndServerASPNETCore" | ||
, "grpc-dotnet-Compressor" | ||
, "grpc-dotnet-Counter" | ||
, "grpc-dotnet-Interceptor" | ||
, "JsonWebTokenAuthentication" | ||
, "Swagger\NSwagSwagger.sln" | ||
, "Swagger\SwashbuckleSwagger.sln") | ||
|
||
foreach ($example in $examples) { | ||
Invoke-Build -File "sdk-test/just-build.ps1" -Settings $settings -Example $example | ||
} | ||
} | ||
|
||
task BuildAndRun { | ||
$tests = Get-ChildItem -Path (Join-Path $settings.build sdk-test) -Filter "*-ci-linux.ps1" | ForEach-Object {$_.FullName} | ||
foreach ($test in $tests) { | ||
Invoke-Build -File $test -Settings $settings | ||
} | ||
} |
Oops, something went wrong.