AArnott / Library.Template

A template for a NuGet package with tests, stylecop, fxcop, versioning, and Azure Pipelines build ready to go.
MIT License
131 stars 26 forks source link

Add support for running 32-bit tests #153

Closed AArnott closed 2 years ago

AArnott commented 2 years ago

Activating this within a repo might look like this:

In init.ps1, make this modification:

-    & "$PSScriptRoot\tools\Install-DotNetSdk.ps1" -InstallLocality $InstallLocality
+    & "$PSScriptRoot\tools\Install-DotNetSdk.ps1" -InstallLocality $InstallLocality -IncludeX86

Then in dotnet.yml, make this modification:

 - powershell: azure-pipelines/dotnet-test-cloud.ps1 -Configuration $(BuildConfiguration) -Agent $(Agent.JobName) -PublishResults
-  displayName: dotnet test
+  displayName: dotnet test x64
+
+- powershell: azure-pipelines/dotnet-test-cloud.ps1 -Configuration $(BuildConfiguration) -Agent $(Agent.JobName) -x86 -PublishResults
+  displayName: dotnet test x86
+  condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))