azure config, fix docs build

This commit is contained in:
David Lord 2019-05-16 12:45:03 -07:00
parent 2236ba980c
commit bcf8cb1fd4
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 16 additions and 12 deletions

View file

@ -1,14 +1,14 @@
trigger: trigger:
- 'master' - 'master'
- '*-maintenance' - '*.x'
jobs: jobs:
- job: Flask - job: Flask
variables: variables:
vmImage: ubuntu-latest vmImage: ubuntu-latest
python.version: '3.7' python.version: '3.7'
TOXENV: 'py,codecov'
python.architecture: 'x64' python.architecture: 'x64'
TOXENV: 'py,codecov'
publish.test.results: 'true' publish.test.results: 'true'
strategy: strategy:
@ -33,10 +33,10 @@ jobs:
python.version: '2.7' python.version: '2.7'
vmImage: 'windows-latest' vmImage: 'windows-latest'
DocsHtml: DocsHtml:
TOXENV: docs-html TOXENV: 'docs-html'
publish.test.results: 'false' publish.test.results: 'false'
VersionRange: VersionRange:
TOXENV: devel,lowest,codecov TOXENV: 'devel,lowest,codecov'
pool: pool:
vmImage: $[ variables.vmImage ] vmImage: $[ variables.vmImage ]
@ -46,6 +46,7 @@ jobs:
inputs: inputs:
versionSpec: $(python.version) versionSpec: $(python.version)
architecture: $(python.architecture) architecture: $(python.architecture)
displayName: 'Use Python $(python.version)'
- script: pip install -U tox - script: pip install -U tox
displayName: 'Install tox' displayName: 'Install tox'
@ -58,22 +59,24 @@ jobs:
testResultsFiles: 'test-results.xml' testResultsFiles: 'test-results.xml'
testRunTitle: '$(Agent.JobName)' testRunTitle: '$(Agent.JobName)'
condition: eq(variables['publish.test.results'], 'true') condition: eq(variables['publish.test.results'], 'true')
displayName: 'Publish test results'
# TODO: add codecov token # TODO: add codecov token
# As a courtesy, try this on the dev version of Python # 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 # Use a container since Azure Pipelines may not have the bleeding-edge Python RC
- job: FlaskOnLatest - job: FlaskOnLatest
pool: { vmImage: ubuntu-latest } pool:
vmImage: ubuntu-latest
container: python:rc-stretch
variables: variables:
TOXENV: 'future' TOXENV: 'future'
container: python:rc-stretch
steps: steps:
- script: | - script: |
echo "##vso[task.prependPath]$HOME/.local/bin" echo "##vso[task.prependPath]$HOME/.local/bin"
pip install -U --user tox pip install -U --user tox
displayName: 'Install tox' displayName: 'Install tox'
# don't fail the build if this doesn't work! # don't fail the build if this doesn't work!
- script: tox - script: tox
displayName: 'Run tox' displayName: 'Run tox'

View file

@ -10,8 +10,10 @@ Please, don't use the issue tracker for this. Use one of the following
resources for questions about your own code: resources for questions about your own code:
* The ``#get-help`` channel on our Discord chat: https://discord.gg/t6rrQZH * The ``#get-help`` channel on our Discord chat: https://discord.gg/t6rrQZH
* The IRC channel ``#pocoo`` on FreeNode is linked to Discord, but * The IRC channel ``#pocoo`` on FreeNode is linked to Discord, but
Discord is preferred. Discord is preferred.
* The mailing list flask@python.org for long term discussion or larger issues. * The mailing list flask@python.org for long term discussion or larger issues.
* Ask on `Stack Overflow`_. Search with Google first using: * Ask on `Stack Overflow`_. Search with Google first using:
``site:stackoverflow.com flask {search term, exception message, etc.}`` ``site:stackoverflow.com flask {search term, exception message, etc.}``

View file

@ -35,16 +35,15 @@ 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 --junitxml=test-results.xml tests examples coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
[testenv:future] [testenv:future]
# courtesy Python nightly test, don't fail the build in CI
ignore_outcome = true ignore_outcome = true
commands = commands =
pip install -q -e examples/tutorial[test] pip install -q -e examples/tutorial[test]
pip install -q -e examples/javascript[test] pip install -q -e examples/javascript[test]
coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
coverage run -p -m pytest tests examples
[testenv:stylecheck] [testenv:stylecheck]
deps = pre-commit deps = pre-commit