Merge branch '1.0.x'
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 · parents bcf8cb1, 814a7ea · Browse files · 5 files·+100 added−180 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+100 added−180 removed
- other:+100 added−180 removed
Provenance
- Commit
953284a- Tree
503c723- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
bcf8cb1- Parent 2
814a7ea
5 files changed+100 added−180 removed
deleted:.appveyor.yml-26 removed
1234567891011121314151617181920212223242526environment: global: TOXENV: py,codecov
matrix: - PYTHON: C:\Python37-x64 - PYTHON: C:\Python27-x64
init: - SET PATH=%PYTHON%;%PATH%
install: - python -m pip install -U tox
build: false
test_script: - python -m tox
branches: only: - master - /^.*-maintenance$/
cache: - '%LOCALAPPDATA%\pip\Cache'modified:.azure-pipelines.yml+85 added-82 removed
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818212345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485trigger:- 'master'- '*.x'
jobs:- job: Flask variables: vmImage: ubuntu-latest python.version: '3.7' python.architecture: 'x64' TOXENV: 'py,codecov' 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' publish.test.results: 'false' VersionRange: 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'
- script: tox displayName: 'Run tox'
- task: PublishTestResults@2 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 container: python:rc-stretch variables: TOXENV: 'future' 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'trigger: - 'master' - '*.x'
jobs: - job: Flask variables: vmImage: ubuntu-latest python.version: '3.7' python.architecture: 'x64' TOXENV: 'py,coverage-ci' publish.test.results: 'true' CODECOV_TOKEN: '$(codecov.token)'
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,coverage-ci'
pool: vmImage: $[ variables.vmImage ]
steps: - task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture) displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox displayName: Install tox
- script: tox -- --junitxml=test-results.xml tests examples displayName: Run tox
- task: PublishTestResults@2 inputs: testResultsFiles: test-results.xml testRunTitle: $(Agent.JobName) condition: eq(variables['publish.test.results'], 'true') displayName: Publish test results
- task: PublishCodeCoverageResults@1 inputs: codeCoverageTool: Cobertura summaryFileLocation: coverage.xml condition: eq(variables['publish.test.results'], 'true') displayName: Publish coverage results
# Test on the nightly version of Python. # Use a container since Azure Pipelines may not have the latest build. - job: FlaskOnNightly pool: vmImage: ubuntu-latest container: python:rc-stretch steps: - script: | echo "##vso[task.prependPath]$HOME/.local/bin" pip --disable-pip-version-check install --user -U tox displayName: Install tox
- script: tox -e nightly displayName: Run toxdeleted:.travis.yml-57 removed
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657os: linuxdist: xeniallanguage: pythonpython: - "3.7" - "3.6" - "3.5" - "3.4" - "2.7" - nightly - pypy3.5-6.0env: TOXENV=py,codecov
matrix: include: - env: TOXENV=docs-html - env: TOXENV=devel,lowest,codecov# disabled because before_install is too slow# - os: osx# language: generic# env: TOXENV=py3,codecov# cache:# directories:# - $HOME/Library/Caches/Homebrew# - $HOME/Library/Caches/pip allow_failures: - python: nightly - python: pypy3.5-6.0 - os: osx fast_finish: true
before_install: - | if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew upgrade python export PATH="/usr/local/opt/python/libexec/bin:${PATH}" fi
install: - pip install tox
script: - tox
cache: directories: - $HOME/.cache/pip - $HOME/.cache/pre-commit
branches: only: - master - /^\d+(\.\d+)*-maintenance$/ - /^\d+(\.\d+)*(\.x)?$/
notifications: email: falsemodified:README.rst-1 removed
71 unmodified lines72 * Releases: https://pypi.org/project/Flask/73 * Code: https://github.com/pallets/flask74 * Issue tracker: https://github.com/pallets/flask/issues75 * Test status: https://dev.azure.com/pallets/pallets/_build?definitionId=276-76 * Test coverage: https://codecov.io/gh/pallets/flask77 * Official chat: https://discord.gg/t6rrQZH78 79 .. _WSGI: https://wsgi.readthedocs.io3 unmodified linesmodified:tox.ini+15 added-14 removed
1 [tox]2 envlist =3- py{37,36,35,34,27,py}4- py{37,27,py}-simplejson5- py{37,27,py}-devel6- py{37,27,py}-lowest3+ py{37,36,35,27,py3,py}4+ py37-{simplejson,devel,lowest}5 docs-html8- coverage-report6+ coverage7 8 [testenv]9 passenv = LANG10 deps =13- pytest>=311+ pytest12 coverage13 greenlet14 blinker15 python-dotenv16 unmodified lines32 pip install -q -e examples/tutorial[test]33 pip install -q -e examples/javascript[test]34 35 # pytest-cov doesn't seem to play nice with -p38- coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}36+ coverage run -p -m pytest --tb=short {posargs:tests examples}37 40-[testenv:future]38+[testenv:nightly]39 # courtesy Python nightly test, don't fail the build in CI40 ignore_outcome = true41 commands =42 pip install -q -e examples/tutorial[test]9 unmodified lines52 deps =53 -r docs/requirements.txt54 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html55 58-[testenv:coverage-report]56+[testenv:coverage]57 deps = coverage58 skip_install = true59 commands =60 coverage combine63- coverage report61 coverage html62+ coverage report63 66-[testenv:codecov]67-passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* BUILD_* SYSTEM_* AGENT_* TF_BUILD68-deps = codecov64+[testenv:coverage-ci]65+passenv = CODECOV_TOKEN66+deps =67+ coverage68+ codecov69 skip_install = true70 commands =71 coverage combine72- coverage report72 codecov73+ coverage xml74+ coverage report