Skip to content

Commit

Permalink
Run 32-bit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Jul 27, 2021
1 parent 10b219e commit 4451779
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ stages:
windows:
imageName: 'windows-2019'
testModifier:
dotnet32: "\"C:\\Program Files (x86)\\dotnet\\dotnet.exe\""
variables:
- ${{ if eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/andrewarnott/') }}:
- group: dotnetfoundation code signing
Expand All @@ -69,6 +70,13 @@ stages:
packageType: runtime
version: 3.1.x

- pwsh: |
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
& .\dotnet-install.ps1 -Architecture x86 -Version 5.0.202 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
& .\dotnet-install.ps1 -Architecture x86 -Channel 3.1 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
displayName: Install 32-bit .NET Core SDK 5.0.202, 3.1
condition: ne(variables['dotnet32'], '')
- script: dotnet --info
displayName: Show dotnet SDK info

Expand Down Expand Up @@ -121,8 +129,22 @@ stages:
--collect:"XPlat Code Coverage"
--
RunConfiguration.DisableAppDomain=true
displayName: Run tests
displayName: Run x64 tests
workingDirectory: src
- script: >
$(dotnet32) test NerdBank.GitVersioning.Tests
--no-build $(testModifier)
-c $(BuildConfiguration)
--filter "TestCategory!=FailsOnAzurePipelines"
--logger "trx;LogFileName=$(Build.ArtifactStagingDirectory)/TestLogs/TestResults.trx"
--results-directory $(Build.ArtifactStagingDirectory)/CodeCoverage/
--collect:"XPlat Code Coverage"
--
RunConfiguration.DisableAppDomain=true
displayName: Run x86 tests
workingDirectory: src
condition: ne(variables['dotnet32'], '')
- task: PublishCodeCoverageResults@1
displayName: Publish code coverage results
Expand Down

0 comments on commit 4451779

Please sign in to comment.