2019-05-08 20:13:55 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Don't have two build jobs for each pull request.
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: 'Test'
|
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu-16.04'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Typing:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: typing
|
|
|
|
Lint:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: lint
|
|
|
|
|
|
|
|
py27:
|
|
|
|
python.version: '2.7'
|
|
|
|
TOXENV: py27
|
|
|
|
py34:
|
|
|
|
python.version: '3.4'
|
|
|
|
TOXENV: py34
|
|
|
|
py35:
|
|
|
|
python.version: '3.5'
|
|
|
|
TOXENV: py35
|
|
|
|
py36:
|
|
|
|
python.version: '3.6'
|
|
|
|
TOXENV: py36
|
|
|
|
py37:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: py37
|
|
|
|
|
2019-05-08 21:18:22 +00:00
|
|
|
pypy2:
|
|
|
|
python.version: 'pypy2'
|
|
|
|
TOXENV: pypy
|
|
|
|
pypy3:
|
|
|
|
python.version: 'pypy3'
|
|
|
|
TOXENV: pypy3
|
|
|
|
|
|
|
|
|
2019-05-08 20:13:55 +00:00
|
|
|
Docs:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: docs
|
|
|
|
PyPI-Description:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: pypi-description
|
|
|
|
Changelog:
|
|
|
|
python.version: '3.7'
|
|
|
|
TOXENV: changelog
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '$(python.version)'
|
|
|
|
architecture: 'x64'
|
|
|
|
|
|
|
|
- script: python -m pip install --upgrade tox codecov
|
|
|
|
displayName: install tox
|
|
|
|
- script: env ATTRS_TEST_EXTRAS=azure-pipelines tox
|
|
|
|
displayName: run tox
|
|
|
|
- script: |
|
|
|
|
coverage combine
|
|
|
|
codecov -t $(CODECOV_TOKEN)
|
|
|
|
displayName: Report Coverage
|
|
|
|
condition: succeeded()
|