azure config, fix docs build
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 2236ba9 · Browse files · 3 files·+16 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+16 added−12 removed
- other:+16 added−12 removed
Provenance
- Commit
bcf8cb1- Tree
6a62fa1- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
2236ba9
3 files changed+16 added−12 removed
modified:.azure-pipelines.yml+11 added-8 removed
12334567891010111213141516 unmodified lines3233343536363738393940414243444546474849505152534 unmodified lines5859606162616364656667686769707172737074757677787679808182trigger:- 'master'- '*-maintenance'- '*.x'
jobs:- job: Flask variables: vmImage: ubuntu-latest python.version: '3.7' TOXENV: 'py,codecov' python.architecture: 'x64' TOXENV: 'py,codecov' publish.test.results: 'true'
strategy: matrix:16 unmodified lines Python27Windows: python.version: '2.7' vmImage: 'windows-latest' DocsHtml: TOXENV: docs-html TOXENV: 'docs-html' publish.test.results: 'false' VersionRange: TOXENV: devel,lowest,codecov TOXENV: 'devel,lowest,codecov'
pool: vmImage: $[ variables.vmImage ]
steps: - task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture) displayName: 'Use Python $(python.version)'
- script: pip install -U tox displayName: 'Install tox'
4 unmodified lines inputs: testResultsFiles: 'test-results.xml' testRunTitle: '$(Agent.JobName)' condition: eq(variables['publish.test.results'], 'true') displayName: 'Publish test results'
# 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 } pool: vmImage: ubuntu-latest container: python:rc-stretch variables: TOXENV: 'future' container: python:rc-stretch steps: - script: | echo "##vso[task.prependPath]$HOME/.local/bin" pip install -U --user tox displayName: 'Install tox'
# don't fail the build if this doesn't work! - script: tox displayName: 'Run tox'modified:CONTRIBUTING.rst+2 added
8 unmodified lines9 Please, don't use the issue tracker for this. Use one of the following10 resources for questions about your own code:11 12 * The ``#get-help`` channel on our Discord chat: https://discord.gg/t6rrQZH13+14 * The IRC channel ``#pocoo`` on FreeNode is linked to Discord, but15 Discord is preferred.16+17 * The mailing list flask@python.org for long term discussion or larger issues.18 * Ask on `Stack Overflow`_. Search with Google first using:19 ``site:stackoverflow.com flask {search term, exception message, etc.}``20 175 unmodified linesmodified:tox.ini+3 added-4 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 --junitxml=test-results.xml tests examples38+ coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}39 40 [testenv:future]41+# courtesy Python nightly test, don't fail the build in CI42 ignore_outcome = true42-43 commands =44 pip install -q -e examples/tutorial[test]45 pip install -q -e examples/javascript[test]46+ coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}47 47- coverage run -p -m pytest tests examples48-48 [testenv:stylecheck]49 deps = pre-commit50 skip_install = true51 commands = pre-commit run --all-files --show-diff-on-failure22 unmodified lines