attrs/azure-pipelines.yml

62 lines
1.3 KiB
YAML
Raw Normal View History

---
# 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
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()