-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove dotnet-install from build.ps1 * moved to .NET 8 * fixed build.ps1 * copying TurboMqtt's build system * fixed structure of RELEASE_NOTES.md * modernized AzDo scripts * fixed shell selection * fix first jobs * resolved YAML conversion from GA to AzDo * fix checkout * fix issue with --no-build for NBench specs * fixed illegal version number * tidying up test results reporting * fixed windows-release.yaml * fix test results param * disable markdown output test on Linux * deleted old build system * fixed precompilation directives * added README to NuGet data * fixed publication of Linux test results
- Loading branch information
1 parent
71504e3
commit bf02b80
Showing
26 changed files
with
342 additions
and
934 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
2 changes: 1 addition & 1 deletion
2
benchmarks/NBench.Microbenchmarks/NBench.Microbenchmarks.csproj
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 was deleted.
Oops, something went wrong.
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,52 +1,111 @@ | ||
# Pull request validation for Windows against the `dev` and `master` branches | ||
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for reference | ||
trigger: | ||
branches: | ||
include: | ||
- dev | ||
- master | ||
- dev | ||
- main | ||
|
||
pr: | ||
autoCancel: true # indicates whether additional pushes to a PR should cancel in-progress runs for the same PR. Defaults to true | ||
branches: | ||
include: [ dev, master ] # branch names which will trigger a build | ||
|
||
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) | ||
include: | ||
- master | ||
- dev | ||
- main | ||
|
||
jobs: | ||
- template: azure-pipeline.template.yaml | ||
parameters: | ||
name: 'windows_tests' | ||
displayName: 'Windows Tests' | ||
vmImage: 'windows-latest' | ||
scriptFileName: build.cmd | ||
scriptArgs: RunTests | ||
outputDirectory: 'TestResults' | ||
artifactName: 'windows_tests-$(Build.BuildId)' | ||
- template: azure-pipeline.template.yaml | ||
parameters: | ||
name: 'windows_integration' | ||
displayName: 'Integration Tests' | ||
vmImage: 'windows-latest' | ||
scriptFileName: build.cmd | ||
scriptArgs: NBench | ||
outputDirectory: 'PerfResults' | ||
artifactName: 'integration_tests_windows-$(Build.BuildId)' | ||
- template: azure-pipeline.template.yaml | ||
parameters: | ||
name: 'linux_integration' | ||
displayName: 'Integration Tests (Linux)' | ||
vmImage: 'ubuntu-latest' | ||
scriptFileName: build.sh | ||
scriptArgs: NBench | ||
outputDirectory: 'PerfResults' | ||
artifactName: 'integration_tests_linux-$(Build.BuildId)' | ||
- template: azure-pipeline.template.yaml | ||
parameters: | ||
name: 'nuget_pack' | ||
displayName: 'NuGet Pack' | ||
vmImage: 'windows-latest' | ||
scriptFileName: build.cmd | ||
scriptArgs: Nuget | ||
outputDirectory: 'bin/nuget' | ||
artifactName: 'nuget-$(Build.BuildId)' | ||
- job: LinuxTest | ||
displayName: 'Test on Linux' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- checkout: self | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Install .NET SDK' | ||
inputs: | ||
packageType: 'sdk' | ||
useGlobalJson: true | ||
|
||
- powershell: ./build.ps1 | ||
displayName: 'Update Release Notes' | ||
|
||
- script: dotnet build -c Release | ||
displayName: 'dotnet build' | ||
|
||
- script: dotnet pack -c Release | ||
displayName: 'dotnet pack' | ||
|
||
- script: dotnet test --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" | ||
displayName: 'dotnet test (Linux)' | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: VSTest | ||
testResultsFiles: '**/*.trx' #TestResults folder usually | ||
testRunTitle: 'Test Results' | ||
mergeTestResults: true | ||
|
||
- job: WindowsTest | ||
displayName: 'Test on Windows' | ||
pool: | ||
vmImage: 'windows-latest' | ||
steps: | ||
- checkout: self | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Install .NET SDK' | ||
inputs: | ||
packageType: 'sdk' | ||
useGlobalJson: true | ||
|
||
- powershell: ./build.ps1 | ||
displayName: 'Update Release Notes' | ||
|
||
- script: dotnet build -c Release | ||
displayName: 'dotnet build' | ||
|
||
- script: dotnet pack -c Release | ||
displayName: 'dotnet pack' | ||
|
||
- script: dotnet test --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" | ||
displayName: 'dotnet test (Windows)' | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: VSTest | ||
testResultsFiles: '**/*.trx' #TestResults folder usually | ||
testRunTitle: 'Test Results' | ||
mergeTestResults: true | ||
|
||
- job: LinuxNBench | ||
displayName: 'NBench on Linux' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- checkout: self | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Install .NET SDK' | ||
inputs: | ||
packageType: 'sdk' | ||
installationPath: $(Agent.ToolsDirectory)/dotnet | ||
useGlobalJson: true | ||
|
||
- powershell: ./scripts/execNBenchProjects.ps1 | ||
displayName: 'Run NBench Projects' | ||
|
||
- job: WindowsNBench | ||
displayName: 'NBench on Windows' | ||
pool: | ||
vmImage: 'windows-latest' | ||
steps: | ||
- checkout: self | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET SDK' | ||
inputs: | ||
packageType: 'sdk' | ||
installationPath: $(Agent.ToolsDirectory)/dotnet | ||
useGlobalJson: true | ||
|
||
- powershell: ./scripts/execNBenchProjects.ps1 | ||
displayName: 'Run NBench Projects' |
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
Oops, something went wrong.