From 3036c45fd73358a7735bd34c2f522a39c914ac3f Mon Sep 17 00:00:00 2001 From: martincostello Date: Sun, 30 Sep 2018 17:33:47 +0100 Subject: [PATCH 1/2] Fail Azure Pipelines build if no coverage output Fail the build in Azure Pipelines if no code coverage data for Cobertura is generated. --- .azure-pipelines/build-template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index 79a22cbb..8fa984da 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -64,6 +64,7 @@ phases: condition: always() inputs: codeCoverageTool: cobertura + failIfCoverageEmpty: true reportDirectory: $(Build.StagingDirectory)/**/coverage summaryFileLocation: $(Build.StagingDirectory)/**/Cobertura.xml - task: PublishBuildArtifacts@1 From 5f70731d24aa5366a8b270e1db3311a0c8612cb8 Mon Sep 17 00:00:00 2001 From: martincostello Date: Sun, 30 Sep 2018 17:35:00 +0100 Subject: [PATCH 2/2] Update code analyzers Update the code analyzers to the latest version. --- Directory.Build.props | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index a4344a04..5c0b8dd4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,14 +2,14 @@ - - - + + + - + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb