From d059cb95b48b535a2021890391198ca984e69b5c Mon Sep 17 00:00:00 2001 From: joshmc Date: Mon, 19 Oct 2020 18:16:53 +0100 Subject: [PATCH] NOISSUE - Add cargo tarpaulin step to azure pipelines --- .gitignore | 1 + azure-pipelines.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 36dbb72a..cd5597e6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ .DS_Store .vscode/ .idea/ +cobertura.xml diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fb16303e..c998604c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,3 +37,17 @@ steps: # All platforms - script: cargo test --all displayName: Cargo test + + # Linux + - script: | + cargo install cargo-tarpaulin + cargo tarpaulin --out Xml + displayName: Cargo tarpaulin + condition: eq(variables['Agent.OS'], 'Linux') + + # Linux + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: cobertura.xml + condition: eq(variables['Agent.OS'], 'Linux')