Skip to content

Commit

Permalink
Collect raw coverage xml as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Jun 16, 2019
1 parent d71e2b2 commit 1fa2a36
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions azure-pipelines.ix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ pr:
pool:
vmImage: windows-2019

variables:
variables:
BuildConfiguration: Release
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- task: DotNetCoreInstaller@0
inputs:
version: '3.0.100-preview6-012264'

- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
Expand All @@ -46,19 +46,19 @@ steps:
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: Ix.NET/Source/**/*.csproj
projects: Ix.NET/Source/**/*.csproj
displayName: Restore

- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: Ix.NET/Source/**/System.Interactive*.csproj;Ix.NET/Source/**/System.Linq.*.csproj;!Ix.NET/Source/**/*.Tests*.csproj;!Ix.NET/Source/refs/**
configuration: $(BuildConfiguration)
packDirectory: $(Build.ArtifactStagingDirectory)\artifacts
packDirectory: $(Build.ArtifactStagingDirectory)\artifacts
verbosityPack: Minimal
displayName: Pack

- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
Expand All @@ -81,7 +81,7 @@ steps:
codeCoverageTool: Cobertura
summaryFileLocation: $(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports/Cobertura.xml

- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
Expand All @@ -105,8 +105,12 @@ steps:
ArtifactDirectory: $(Build.ArtifactStagingDirectory)\artifacts
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))

- task: PublishBuildArtifacts@1
- task: PublishPipelineArtifact@0
inputs:
targetPath: $(Build.ArtifactStagingDirectory)\artifacts
artifactName: artifacts

- task: PublishPipelineArtifact@0
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)\artifacts
ArtifactName: artifacts
publishLocation: Container
artifactName: Coverage Report XML
targetPath: $(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports/Cobertura.xml

0 comments on commit 1fa2a36

Please sign in to comment.