Skip to content

Commit

Permalink
fix: Adjust environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
NVENTIVE\felix.brault committed Dec 5, 2023
1 parent 4f39770 commit de3a948
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ steps:
/p:PackageVersion=$(GitVersion.SemVer)
/p:ContinuousIntegrationBuild=true
- powershell: |
& Write-Host "##vso[task.setvariable variable=Configuration;]$(ApplicationConfiguration)"
& Write-Host "##vso[task.setvariable variable=CollectCoverage;]true"
& Write-Host "##vso[task.setvariable variable=CoverletOutputFormat;]cobertura"
& Write-Host "##vso[task.setvariable variable=CoverletOutput;]$(Build.SourcesDirectory)/coverage"
& Write-Host "##vso[task.setvariable variable=ExcludeByFile;]"**/*.g.cs""
& dotnet test $(Build.SourcesDirectory)/$(SolutionFileName) --logger trx --no-build
- run: |
dotnet test $(Build.SourcesDirectory)/$(SolutionFileName) --logger trx --no-build
env:
Configuration: $(ApplicationConfiguration)
CollectCoverage: true
CoverletOutputFormat: cobertura
CoverletOutput: $(Build.SourcesDirectory)/coverage
ExcludeByFile: "**/*.g.cs"
displayName: 'Run tests'
condition: and(succeeded(), eq(variables['ApplicationPlatform'], 'NuGet'))

Expand Down

0 comments on commit de3a948

Please sign in to comment.