forked from orbit-oss/flask
add test output and a run against Python RC
This commit is contained in:
parent
12ab9f9c0d
commit
e8d838a551
2 changed files with 71 additions and 46 deletions
|
|
@ -1,11 +1,15 @@
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- 'master'
|
||||||
|
- '*-maintenance'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: Flask
|
||||||
variables:
|
variables:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
python.version: '3.7'
|
python.version: '3.7'
|
||||||
TOXENV: 'py,codecov'
|
TOXENV: 'py,codecov'
|
||||||
python.architecture: 'x64'
|
python.architecture: 'x64'
|
||||||
|
publish.test.results: 'true'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -30,6 +34,7 @@ strategy:
|
||||||
vmImage: 'windows-latest'
|
vmImage: 'windows-latest'
|
||||||
DocsHtml:
|
DocsHtml:
|
||||||
TOXENV: docs-html
|
TOXENV: docs-html
|
||||||
|
publish.test.results: 'false'
|
||||||
VersionRange:
|
VersionRange:
|
||||||
TOXENV: devel,lowest,codecov
|
TOXENV: devel,lowest,codecov
|
||||||
|
|
||||||
|
|
@ -45,9 +50,29 @@ steps:
|
||||||
- script: pip install -U tox
|
- script: pip install -U tox
|
||||||
displayName: 'Install tox'
|
displayName: 'Install tox'
|
||||||
|
|
||||||
- script: tox
|
- script: tox -- --junitxml=unittests/TEST-$(Agent.JobName).xml
|
||||||
displayName: 'Run tox'
|
displayName: 'Run tox'
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
inputs:
|
||||||
|
testResultsFiles: '**/TEST-*.xml'
|
||||||
|
testRunTitle: '$(Agent.JobName)'
|
||||||
|
condition: eq(variables['publish.test.results'], 'true')
|
||||||
|
|
||||||
# TODO: add codecov token
|
# TODO: add codecov token
|
||||||
# TODO: emit JUnit test results
|
|
||||||
# TODO: build on nightly
|
# 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'
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -35,7 +35,7 @@ commands =
|
||||||
pip install -q -e examples/javascript[test]
|
pip install -q -e examples/javascript[test]
|
||||||
|
|
||||||
# pytest-cov doesn't seem to play nice with -p
|
# pytest-cov doesn't seem to play nice with -p
|
||||||
coverage run -p -m pytest tests examples
|
coverage run -p -m pytest tests examples {posargs}
|
||||||
|
|
||||||
[testenv:docs-html]
|
[testenv:docs-html]
|
||||||
deps =
|
deps =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue