diff --git a/.nuget/packages.config b/.nuget/packages.config index 4eb71e8d4..f7010adb5 100644 --- a/.nuget/packages.config +++ b/.nuget/packages.config @@ -1,6 +1,6 @@  - + diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a17012b2c..6647b3d59 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,6 +53,17 @@ jobs: testResultsFormat: xUnit testResultsFiles: 'build/*.xml' + - task: PowerShell@2 + displayName: Upload coverage reports to codecov.io + condition: eq(variables['BuildConfiguration'], 'Debug') + inputs: + workingDirectory: '$(Build.SourcesDirectory)/build' + script: | + $packageConfig = [xml](Get-Content ..\.nuget\packages.config) + $codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version + $codecov = "..\packages\Codecov.$codecov_version\tools\codecov.exe" + &$codecov -f '..\build\OpenCover.Reports\OpenCover.StyleCopAnalyzers.xml' + - task: PublishBuildArtifacts@1 displayName: Publish build logs inputs: