flask/.azure-pipelines.yml

45 lines
785 B
YAML
Raw Normal View History

2019-05-16 13:53:49 -07:00
trigger:
2020-04-03 17:23:21 -07:00
- master
2019-05-16 13:53:49 -07:00
- '*.x'
2020-04-03 17:23:21 -07:00
variables:
vmImage: ubuntu-latest
python.version: '3.8'
TOXENV: py
2019-05-16 13:53:49 -07:00
2020-04-03 17:23:21 -07:00
strategy:
matrix:
Linux:
2019-05-16 13:53:49 -07:00
vmImage: ubuntu-latest
2020-04-03 17:23:21 -07:00
Windows:
vmImage: windows-latest
Mac:
vmImage: macos-latest
Python 3.7:
python.version: '3.7'
Python 3.6:
python.version: '3.6'
PyPy 3:
python.version: pypy3
Version Range:
TOXENV: 'devel,lowest'
Docs:
TOXENV: docs
Style:
TOXENV: style
pool:
vmImage: $[ variables.vmImage ]
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox
displayName: Install tox
- script: tox
displayName: Run tox