Merge pull request #3204 from pallets/azure
Before adoption: this commit came in with the history the project adopted, so no landing records it.
azure pipelines ci on 1.0.x branch
authored by David Lord · committed by GitHub · parents ded0f68, 84f8e16 · Browse files · 6 files·+115 added−101 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+115 added−101 removed
- other:+115 added−101 removed
Provenance
- Commit
814a7ea- Tree
57012cc- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
ded0f68- Parent 2
84f8e16
6 files changed+115 added−101 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'added:.azure-pipelines.yml+85 added
1+trigger:2+ - 'master'3+ - '*.x'4+5+jobs:6+ - job: Flask7+ variables:8+ vmImage: ubuntu-latest9+ python.version: '3.7'10+ python.architecture: 'x64'11+ TOXENV: 'py,coverage-ci'12+ publish.test.results: 'true'13+ CODECOV_TOKEN: '$(codecov.token)'14+15+ strategy:16+ matrix:17+ Python37Linux:18+ python.version: '3.7'19+ Python37Windows:20+ python.version: '3.7'21+ vmImage: 'windows-latest'22+ Python37Mac:23+ python.version: '3.7'24+ vmImage: 'macos-latest'25+ Pypy3Linux:26+ python.version: 'pypy3'27+ Python36Linux:28+ python.version: '3.6'29+ Python35Linux:30+ python.version: '3.5'31+ Python27Linux:32+ python.version: '2.7'33+ Python27Windows:34+ python.version: '2.7'35+ vmImage: 'windows-latest'36+ DocsHtml:37+ TOXENV: 'docs-html'38+ publish.test.results: 'false'39+ VersionRange:40+ TOXENV: 'devel,lowest,coverage-ci'41+42+ pool:43+ vmImage: $[ variables.vmImage ]44+45+ steps:46+ - task: UsePythonVersion@047+ inputs:48+ versionSpec: $(python.version)49+ architecture: $(python.architecture)50+ displayName: Use Python $(python.version)51+52+ - script: pip --disable-pip-version-check install -U tox53+ displayName: Install tox54+55+ - script: tox -- --junitxml=test-results.xml tests examples56+ displayName: Run tox57+58+ - task: PublishTestResults@259+ inputs:60+ testResultsFiles: test-results.xml61+ testRunTitle: $(Agent.JobName)62+ condition: eq(variables['publish.test.results'], 'true')63+ displayName: Publish test results64+65+ - task: PublishCodeCoverageResults@166+ inputs:67+ codeCoverageTool: Cobertura68+ summaryFileLocation: coverage.xml69+ condition: eq(variables['publish.test.results'], 'true')70+ displayName: Publish coverage results71+72+ # Test on the nightly version of Python.73+ # Use a container since Azure Pipelines may not have the latest build.74+ - job: FlaskOnNightly75+ pool:76+ vmImage: ubuntu-latest77+ container: python:rc-stretch78+ steps:79+ - script: |80+ echo "##vso[task.prependPath]$HOME/.local/bin"81+ pip --disable-pip-version-check install --user -U tox82+ displayName: Install tox83+84+ - script: tox -e nightly85+ 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: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:README.rst+1 added-5 removed
61 unmodified lines62 * License: `BSD <https://github.com/pallets/flask/blob/master/LICENSE>`_63 * Releases: https://pypi.org/project/Flask/64 * Code: https://github.com/pallets/flask65 * Issue tracker: https://github.com/pallets/flask/issues66-* Test status:67-68- * Linux, Mac: https://travis-ci.org/pallets/flask69- * Windows: https://ci.appveyor.com/project/pallets/flask70-66+* Test status: https://dev.azure.com/pallets/pallets/_build?definitionId=267 * Test coverage: https://codecov.io/gh/pallets/flask68 * Official chat: https://discord.gg/t6rrQZH69 70 .. _WSGI: https://wsgi.readthedocs.io3 unmodified linesmodified:tox.ini+27 added-13 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 tests examples36+ coverage run -p -m pytest --tb=short {posargs:tests examples}37 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]43+ pip install -q -e examples/javascript[test]44+ coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}45+46+[testenv:stylecheck]47+deps = pre-commit48+skip_install = true49+commands = pre-commit run --all-files --show-diff-on-failure50+51 [testenv:docs-html]52 deps =53 -r docs/requirements.txt54 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html55 45-[testenv:coverage-report]56+[testenv:coverage]57 deps = coverage58 skip_install = true59 commands =60 coverage combine50- coverage report61 coverage html62+ coverage report63 53-[testenv:codecov]54-passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*55-deps = codecov64+[testenv:coverage-ci]65+passenv = CODECOV_TOKEN66+deps =67+ coverage68+ codecov69 skip_install = true70 commands =71 coverage combine59- coverage report72 codecov73+ coverage xml74+ coverage report