forked from AnalogJ/lexicon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
75 lines (72 loc) · 2 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
trigger:
- master
variables:
TOXENV: standard
PYTEST_ADDOPTS: --numprocesses 4
BRANCH_NAME: $(Build.SourceBranch)
jobs:
- job: linux
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
python-2.7-light:
PYTHON_VERSION: 2.7
TOXENV: light
python-2.7:
PYTHON_VERSION: 2.7
python-3.5:
PYTHON_VERSION: 3.5
python-3.6:
PYTHON_VERSION: 3.6
python-3.7:
PYTHON_VERSION: 3.7
python-3.8-cover:
PYTHON_VERSION: 3.8
TOXENV: cover
lint:
PYTHON_VERSION: 3.8
TOXENV: lint
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
addToPath: true
displayName: Enable the targeted python version
- script: python -m pip install --upgrade pip tox
displayName: Install required runtime dependencies
- script: python -m tox
displayName: Execute tests through tox
- script: |
python -m pip install coveralls
coveralls
condition: eq(variables['TOXENV'], 'cover')
env:
COVERALLS_SERVICE_NAME: azure-pipelines
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)
displayName: Publish code coverage
- job: windows
pool:
vmImage: vs2017-win2016
strategy:
matrix:
python-2.7:
PYTHON_VERSION: 2.7
python-3.5:
PYTHON_VERSION: 3.5
python-3.6:
PYTHON_VERSION: 3.6
python-3.7:
PYTHON_VERSION: 3.7
python-3.8:
PYTHON_VERSION: 3.8
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
addToPath: true
displayName: Enable the targeted python version
- script: python -m pip install --upgrade pip tox wheel virtualenv setuptools
displayName: Install required runtime dependencies
- script: python -m tox
displayName: Execute tests through tox