add test output and a run against Python RC
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Matt Cooper · committed by Matt Cooper · parent 12ab9f9 · Browse files · 2 files·+71 added−46 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+71 added−46 removed
- other:+71 added−46 removed
Provenance
- Commit
e8d838a- Tree
24698f9- Author
Matt Cooper <mattc@xbox.com>- Committer
Matt Cooper <mattc@xbox.com>- Parent
12ab9f9
2 files changed+71 added−46 removed
modified:.azure-pipelines.yml+70 added-45 removed
122345645678789101112131011121314151617181920212223242526272829303132333414151617181920212223242526272829303132333435363738394036374142433940414243444546474849454650515248495354555152535657585960616263646566676869707172737475767778trigger:- master- 'master'- '*-maintenance'
jobs:- job: Flaskvariables: vmImage: ubuntu-latest python.version: '3.7' TOXENV: 'py,codecov' python.architecture: 'x64' variables: vmImage: ubuntu-latest python.version: '3.7' TOXENV: 'py,codecov' python.architecture: 'x64' publish.test.results: 'true'
strategy: matrix: Python37Linux: python.version: '3.7' Python37Windows: python.version: '3.7' vmImage: 'windows-latest' Python37Mac: python.version: '3.7' vmImage: 'macos-latest' Pypy3Linux: python.version: 'pypy3' Python36Linux: python.version: '3.6' Python35Linux: python.version: '3.5' Python27Linux: python.version: '2.7' Python27Windows: python.version: '2.7' vmImage: 'windows-latest' DocsHtml: TOXENV: docs-html VersionRange: TOXENV: devel,lowest,codecov strategy: matrix: Python37Linux: python.version: '3.7' Python37Windows: python.version: '3.7' vmImage: 'windows-latest' Python37Mac: python.version: '3.7' vmImage: 'macos-latest' Pypy3Linux: python.version: 'pypy3' Python36Linux: python.version: '3.6' Python35Linux: python.version: '3.5' Python27Linux: python.version: '2.7' Python27Windows: python.version: '2.7' vmImage: 'windows-latest' DocsHtml: TOXENV: docs-html publish.test.results: 'false' VersionRange: TOXENV: devel,lowest,codecov
pool: vmImage: $[ variables.vmImage ] pool: vmImage: $[ variables.vmImage ]
steps:- task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture) steps: - task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture)
- script: pip install -U tox displayName: 'Install tox' - script: pip install -U tox displayName: 'Install tox'
- script: tox displayName: 'Run tox' - script: tox -- --junitxml=unittests/TEST-$(Agent.JobName).xml displayName: 'Run tox'
# TODO: add codecov token# TODO: emit JUnit test results# TODO: build on nightly - task: PublishTestResults@2 inputs: testResultsFiles: '**/TEST-*.xml' testRunTitle: '$(Agent.JobName)' condition: eq(variables['publish.test.results'], 'true') # TODO: add codecov token
# As a courtesy, try this on the dev version of Python# Use a container since Azure Pipelines may not have the bleeding-edge Python RC- job: FlaskOnLatest pool: { vmImage: ubuntu-latest } container: python:rc-stretch steps: - script: | echo "##vso[task.prependPath]$HOME/.local/bin" pip install -U --user tox displayName: 'Install tox' - script: | tox exit 0 # don't fail the build if this doesn't work! displayName: 'Run tox'modified:tox.ini+1 added-1 removed
33 unmodified lines34 pip install -q -e examples/tutorial[test]35 pip install -q -e examples/javascript[test]36 37 # pytest-cov doesn't seem to play nice with -p38- coverage run -p -m pytest tests examples38+ coverage run -p -m pytest tests examples {posargs}39 40 [testenv:docs-html]41 deps =42 -r docs/requirements.txt18 unmodified lines