Set junitxml and colors using PYTEST_ADDOPTS [skip travis] [skip appveyor]

This commit is contained in:
Bruno Oliveira 2019-02-12 20:24:32 -02:00
parent b595587031
commit 215d537624
1 changed files with 4 additions and 6 deletions

View File

@ -1,12 +1,10 @@
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger: trigger:
- master - master
- features - features
variables:
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml --color=yes"
jobs: jobs:
- job: 'Test' - job: 'Test'
@ -37,7 +35,7 @@ jobs:
- script: python -m pip install --upgrade pip && pip install tox - script: python -m pip install --upgrade pip && pip install tox
displayName: 'Install tox' displayName: 'Install tox'
- script: python -m tox -e $(tox.env) -- --junitxml=build/test-results/$(tox.env).xml - script: python -m tox -e $(tox.env)
displayName: 'Run tests' displayName: 'Run tests'
- task: PublishTestResults@2 - task: PublishTestResults@2