Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run 32-bit tests #632

Merged
merged 1 commit into from Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 23 additions & 1 deletion azure-pipelines.yml
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