add 3.8 to pipelines

This commit is contained in:
David Lord 2019-11-18 18:57:43 -08:00
parent 33d9f9fa08
commit 824e548036
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 29 additions and 31 deletions

View file

@ -5,39 +5,38 @@ trigger:
jobs: jobs:
- job: Flask - job: Flask
variables: variables:
vmImage: ubuntu-latest vmImage: 'ubuntu-latest'
python.version: '3.7' python.version: '3.8'
python.architecture: 'x64'
TOXENV: 'py,coverage-ci' TOXENV: 'py,coverage-ci'
publish.test.results: 'true' hasTestResults: 'true'
strategy: strategy:
matrix: matrix:
Python37Linux: Python 3.8 Linux:
python.version: '3.7' vmImage: 'ubuntu-latest'
Python37Windows: Python 3.8 Windows:
python.version: '3.7'
vmImage: 'windows-latest' vmImage: 'windows-latest'
Python37Mac: Python 3.8 Mac:
python.version: '3.7'
vmImage: 'macos-latest' vmImage: 'macos-latest'
Pypy3Linux: PyPy 3 Linux:
python.version: 'pypy3' python.version: 'pypy3'
Python36Linux: Python 3.7 Linux:
python.version: '3.7'
Python 3.6 Linux:
python.version: '3.6' python.version: '3.6'
Python35Linux: Python 3.5 Linux:
python.version: '3.5' python.version: '3.5'
Python27Linux: Python 2.7 Linux:
python.version: '2.7' python.version: '2.7'
Python27Windows: Python 2.7 Windows:
python.version: '2.7' python.version: '2.7'
vmImage: 'windows-latest' vmImage: 'windows-latest'
DocsHtml: Docs:
TOXENV: 'docs-html' TOXENV: 'docs'
publish.test.results: 'false' hasTestResults: 'false'
Style: Style:
TOXENV: stylecheck TOXENV: 'style'
publish.test.results: 'false' hasTestResults: 'false'
VersionRange: VersionRange:
TOXENV: 'devel,lowest,coverage-ci' TOXENV: 'devel,lowest,coverage-ci'
@ -48,27 +47,26 @@ jobs:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs:
versionSpec: $(python.version) versionSpec: $(python.version)
architecture: $(python.architecture)
displayName: Use Python $(python.version) displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox - script: pip --disable-pip-version-check install -U tox
displayName: Install tox displayName: Install tox
- script: tox -- --junitxml=test-results.xml tests examples - script: tox -s false -- --junitxml=test-results.xml tests examples
displayName: Run tox displayName: Run tox
- task: PublishTestResults@2 - task: PublishTestResults@2
inputs: inputs:
testResultsFiles: test-results.xml testResultsFiles: test-results.xml
testRunTitle: $(Agent.JobName) testRunTitle: $(Agent.JobName)
condition: eq(variables['publish.test.results'], 'true') condition: eq(variables['hasTestResults'], 'true')
displayName: Publish test results displayName: Publish test results
- task: PublishCodeCoverageResults@1 - task: PublishCodeCoverageResults@1
inputs: inputs:
codeCoverageTool: Cobertura codeCoverageTool: Cobertura
summaryFileLocation: coverage.xml summaryFileLocation: coverage.xml
condition: eq(variables['publish.test.results'], 'true') condition: eq(variables['hasTestResults'], 'true')
displayName: Publish coverage results displayName: Publish coverage results
# Test on the nightly version of Python. # Test on the nightly version of Python.

View file

@ -164,6 +164,7 @@ Building the docs
Build the docs in the ``docs`` directory using Sphinx:: Build the docs in the ``docs`` directory using Sphinx::
cd docs cd docs
pip install -r requirements.txt
make html make html
Open ``_build/html/index.html`` in your browser to view the docs. Open ``_build/html/index.html`` in your browser to view the docs.

13
tox.ini
View file

@ -2,8 +2,9 @@
envlist = envlist =
py{38,37,36,35,27,py3,py} py{38,37,36,35,27,py3,py}
py38-{simplejson,devel,lowest} py38-{simplejson,devel,lowest}
docs-html docs
coverage coverage
skip_missing_interpreters = true
[testenv] [testenv]
passenv = LANG passenv = LANG
@ -14,7 +15,7 @@ deps =
blinker blinker
python-dotenv python-dotenv
lowest: Werkzeug==0.15 lowest: Werkzeug==0.15.5
lowest: Jinja2==2.10 lowest: Jinja2==2.10
lowest: itsdangerous==0.24 lowest: itsdangerous==0.24
lowest: Click==5.1 lowest: Click==5.1
@ -39,16 +40,14 @@ commands =
# courtesy Python nightly test, don't fail the build in CI # 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] coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml tests
pip install -q -e examples/javascript[test]
coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml {posargs:tests examples}
[testenv:stylecheck] [testenv:style]
deps = pre-commit deps = pre-commit
skip_install = true skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs-html] [testenv:docs]
deps = deps =
-r docs/requirements.txt -r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html