Skip to content

Commit

Permalink
Build: Simplify BuildRelease.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Dec 26, 2024
1 parent 01f4e32 commit cc69e8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/BuildRelease.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ setlocal
set DOTNET_CLI_UI_LANGUAGE=en
cd %~dp0../src

dotnet build System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true
rem -p:ContinuousIntegrationBuild=true ... Workaround: does not work for coverage
dotnet build System.Waf/System.Waf.sln -c Release

pwsh -c "Get-ChildItem -Recurse | Where-Object {$_.Name -eq 'TestResults'} | Remove-Item -Force -Recurse"
dotnet test System.Waf/System.Waf.sln -c Release --no-build --collect "Code Coverage"
dotnet test System.Waf/System.Waf.sln -c Release --no-build

mkdir ..\out\CodeCoverageReport
dotnet-coverage merge --output ../out/CodeCoverageReport/System.Waf.cobertura.xml --output-format cobertura "./**/TestResults/**/*.coverage"
dotnet-coverage merge --output ../out/CodeCoverage/System.Waf.cobertura.xml --output-format cobertura "./**/TestResults/**/*.coverage"

reportgenerator -reports:../out/CodeCoverageReport/System.Waf.cobertura.xml -targetdir:../out/CodeCoverageReport -reporttypes:"MarkdownSummaryGithub"
reportgenerator -reports:../out/CodeCoverage/System.Waf.cobertura.xml -targetdir:../out/CodeCoverage -reporttypes:"MarkdownSummaryGithub"

0 comments on commit cc69e8a

Please sign in to comment.