Coverage for windows and linux

This commit is contained in:
Karthik Nadig 2020-01-31 12:10:17 -08:00
parent 761570fd14
commit f22b8e7edd
3 changed files with 43 additions and 0 deletions

View 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"

View 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()

View 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"