Update azure-pipelines_nightly.yml

This commit is contained in:
Sam Xu 2020-05-20 15:31:52 -07:00 committed by GitHub
parent 0b2f951f49
commit 8e7d94dcba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,19 @@ steps:
projects: '$(Build.SourcesDirectory)\test\Microsoft.OpenAPI.OData.Reader.Tests\Microsoft.OpenApi.OData.Reader.Tests.csproj'
arguments: '--configuration $(BuildConfiguration) --no-incremental'
# because the assemblies are delay-signed, we need to disable
# strong name validation so that the tests may run,
# otherwise our assemblies will fail to load
- task: Powershell@2
displayName: 'Skip strong name validation'
inputs:
targetType: 'inline'
script: |
& "$(snExe)" /Vr $(ProductBinPath)\net472\$(mainDll)
& "$(snExe64)" /Vr $(ProductBinPath)\net472\$(mainDll)
& "$(snExe)" /Vr $(ProductBinPath)\test\net472\$(testDll)
& "$(snExe64)" /Vr $(ProductBinPath)\test\net472\$(testDll)
# Run the Unit test
- task: DotNetCoreCLI@2
displayName: 'Run Microsoft.OpenApi.OData.Reader.Tests.csproj'