File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<packages >
3- <package id =" Codecov" version =" 1.8 .0" />
3+ <package id =" Codecov" version =" 1.9 .0" />
44 <package id =" OpenCover" version =" 4.6.519" />
55 <package id =" ReportGenerator" version =" 2.3.5.0" targetFramework =" net452" />
66 <package id =" xunit.runner.console" version =" 2.4.1" />
Original file line number Diff line number Diff line change 5353 testResultsFormat : xUnit
5454 testResultsFiles : ' build/*.xml'
5555
56+ - task : PowerShell@2
57+ displayName : Upload coverage reports to codecov.io
58+ condition : eq(variables['BuildConfiguration'], 'Debug')
59+ inputs :
60+ workingDirectory : ' $(Build.SourcesDirectory)/build'
61+ script : |
62+ $packageConfig = [xml](Get-Content ..\.nuget\packages.config)
63+ $codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version
64+ $codecov = "..\packages\Codecov.$codecov_version\tools\codecov.exe"
65+ &$codecov -f '..\build\OpenCover.Reports\OpenCover.StyleCopAnalyzers.xml'
66+
5667 - task : PublishBuildArtifacts@1
5768 displayName : Publish build logs
5869 inputs :
You can’t perform that action at this time.
0 commit comments