Skip to content

Commit

Permalink
added test coverage, Linux 32-bit Python
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislit committed Nov 17, 2018
1 parent 5010633 commit 3554f94
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions azure-pipelines.yml
Expand Up @@ -31,7 +31,8 @@ jobs:

- script: |
pip install pytest
pytest tests --doctest-modules --junitxml=junit/test-results.xml
pip install pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
displayName: 'pytest'
- task: PublishTestResults@2
Expand All @@ -40,6 +41,26 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x32'

- script: python -m pip install --upgrade pip && pip install -r requirements.txt
displayName: 'Install dependencies'

- script: |
pip install pytest
pip install pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
displayName: 'pytest'
- job: 'Test_Windows'
pool:
vmImage: 'vs2017-win2016'
Expand All @@ -61,12 +82,10 @@ jobs:
versionSpec: '$(python.version)'
architecture: 'x64'

- script: python -m pip install --upgrade pip && pip install -r requirements.txt
displayName: 'Install dependencies'

- script: |
pip install pytest
pytest tests --doctest-modules --junitxml=junit/test-results.xml
pip install pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
displayName: 'pytest'
- task: PublishTestResults@2
Expand All @@ -75,6 +94,12 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'


- job: 'Test_MacOS'
pool:
Expand Down Expand Up @@ -102,7 +127,8 @@ jobs:

- script: |
pip install pytest
pytest tests --doctest-modules --junitxml=junit/test-results.xml
pip install pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
displayName: 'pytest'
- task: PublishTestResults@2
Expand All @@ -111,6 +137,12 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

- job: 'Publish'
dependsOn: 'Test_Linux'
pool:
Expand Down

0 comments on commit 3554f94

Please sign in to comment.