Skip to content

Commit

Permalink
ci: use sonar template
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 23, 2019
1 parent 76aa255 commit 927a2ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions .azure-pipelines/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,4 @@ resources:
steps:
- template: templates/yml/python/combo/setup-pip.yml@templates
- template: templates/yml/python/combo/run-pytest-ci.yml@templates

- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: 'SonarCloud Swellaby'
organization: swellaby
scannerMode: CLI
extraProperties: |
sonar.projectVersion=$(Build.BuildId)
- task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
displayName: 'Run code analysis'

- task: SonarSource.sonarcloud.38b27399-a642-40af-bb7d-9971f69712e8.SonarCloudPublish@1
displayName: 'Publish quality gate result'
- template: templates/yml/any/sonar/run-sonar-cloud-cli-analysis.yml@templates
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"files.associations": {
"**/.azure-pipelines/**": "azure-pipelines"
},
"python.testing.pyTestEnabled": false,
"python.testing.pytestEnabled": false,
"python.testing.autoTestDiscoverOnSaveEnabled": false
}

0 comments on commit 927a2ea

Please sign in to comment.