Skip to content

Commit

Permalink
VIH-10843 add sonar to master build
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaed Parkar committed Oct 7, 2024
1 parent 8e5cf24 commit 6815331
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions azure-pipelines.sds.master-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,31 @@ stages:
vstsFeed: "${{ variables.nuget_org_name }}/${{ variables.nuget_feed_name }}"
gitVersionConfigPath: ${{ variables.git_version_config_path }}

#####################################################
# CI Build Tasks. ###################################
- stage: CI_Build
dependsOn: []
variables:
- template: variables/shared.yaml
displayName: Test & Sonar
jobs:
- job: UnitAndIntegrationTests
displayName: 'Unit and Integration Tests'
steps:
- checkout: self

- template: templates/dotnet/build-test-analyse.yml@azTemplates
parameters:
dotnetVersion: ${{ variables.dotnetVersion }}
nugetConfigPath: nuget.config
appName: ${{ variables.appName }}
dockerComposeTestFile: docker-compose.tests.yml
sonarExtraProperties: |
sonar.cs.opencover.reportsPaths=$(System.DefaultWorkingDirectory)/coverage.opencover.xml
sonar.cpd.exclusions=**/NotificationType.cs,**/TemplateDataForEnvironments.cs,*/Validations/*.cs,**/Services/NotificationParameterMapper.cs
sonar.exclusions=**/Program.cs, **/Startup.cs, **/Testing.Common/**/*, **/NotificationApi/Swagger/**/*, NotificationApi/NotificationApi.DAL/Migrations/*, NotificationApi/NotificationApi.DAL/TemplateDataForEnvironments.cs
sonar.coverage.exclusions=**/NotificationApi/Swagger/**/*, **/Program.cs, **/Startup.cs, **/Testing.Common/**/*, **/NotificationApi.Common/**/*, **/NotificationApi.IntegrationTests/**/*, **/NotificationApi.UnitTests/**/*, **/NotificationApi/Extensions/*, **/NotificationApi.DAL/Migrations/**/*
#####################################################
# Manual Approval ###################################
- ${{ each stage in parameters.stages }}:
Expand Down

0 comments on commit 6815331

Please sign in to comment.