Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
fix(enrolling): modify source path for code coverage (#166)
Browse files Browse the repository at this point in the history
Now we can check code coverage report with source code in graphical user interface in Azure DevOps pipeline result.

Also only run pipeline for enrolling pipeline change only. Currently any changes to any azure pipeline trigger the pipeline.

Closes #164
  • Loading branch information
ratanparai committed Jun 27, 2020
1 parent d4797b4 commit 2845652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/azure-devops/enrolling-api/azure-pipelines.yml
Expand Up @@ -4,12 +4,12 @@ trigger:
paths:
include:
- src/Services/Enrolling/*
- build/azure-devops/*
- build/azure-devops/enrolling-api/*
pr:
paths:
include:
- src/Services/Enrolling/*
- build/azure-devops/*
- build/azure-devops/enrolling-api/*
steps:
- task: DockerCompose@0
displayName: Build
Expand Down Expand Up @@ -43,4 +43,5 @@ steps:
displayName: Publish test coverage
inputs:
codeCoverageTool: "cobertura" # Options: cobertura, jaCoCo
pathToSources: $(System.DefaultWorkingDirectory)/src/Services/Enrolling/
summaryFileLocation: "$(Build.ArtifactStagingDirectory)/*/coverage.cobertura.xml"

0 comments on commit 2845652

Please sign in to comment.