mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Coverage for windows and linux
This commit is contained in:
parent
761570fd14
commit
f22b8e7edd
3 changed files with 43 additions and 0 deletions
12
azure-pipelines/linux_coverage.yaml
Normal file
12
azure-pipelines/linux_coverage.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
variables:
|
||||
architecture: "x64"
|
||||
python.version: "3.8"
|
||||
|
||||
jobs:
|
||||
- job: 'Coverage'
|
||||
pool:
|
||||
name: Azure Pipelines
|
||||
demands: java
|
||||
vmImage: "ubuntu-16.04"
|
||||
steps:
|
||||
- template: "azure-pipelines/templates/coverage.yml"
|
||||
19
azure-pipelines/templates/coverage.yml
Normal file
19
azure-pipelines/templates/coverage.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
steps:
|
||||
- template: "azure-pipelines/templates/use_python.yml"
|
||||
|
||||
- script: |
|
||||
python -m pip install -U pip setuptools tox
|
||||
displayName: 'Setup Python packages'
|
||||
|
||||
- script: |
|
||||
python -m tox --develop -e py38-cov -- --cov-report=html --cov-report=xml -vv
|
||||
displayName: 'Coverage Run'
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
displayName: 'Publish Coverage Report'
|
||||
inputs:
|
||||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: '$(Build.SourcesDirectory)/**/coverage/coverage.xml'
|
||||
reportDirectory: '$(Build.SourcesDirectory)/**/coverage/html'
|
||||
failIfCoverageEmpty: true
|
||||
condition: always()
|
||||
12
azure-pipelines/win-coverage.yaml
Normal file
12
azure-pipelines/win-coverage.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
variables:
|
||||
architecture: "x64"
|
||||
python.version: "3.8"
|
||||
|
||||
jobs:
|
||||
- job: 'Coverage'
|
||||
pool:
|
||||
name: Azure Pipelines
|
||||
demands: java
|
||||
vmImage: "vs2017-win2016"
|
||||
steps:
|
||||
- template: "azure-pipelines/templates/coverage.yml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue