-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
76 lines (62 loc) · 1.4 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
76
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
variables:
moduleName: pygot
testsName: tests
trigger:
batch: true
branches:
include:
- '*'
pr:
autoCancel: true
branches:
include:
- '*'
schedules:
- cron: 0 0 * * *
displayName: Daily build
branches:
include:
- master
always: true
pool:
vmImage: $(vmImage)
strategy:
matrix:
linux37:
versionSpec: '3.7'
vmImage: ubuntu-latest
linux38:
versionSpec: '3.8'
vmImage: ubuntu-latest
windows37:
versionSpec: '3.7'
vmImage: windows-latest
windows38:
versionSpec: '3.8'
vmImage: windows-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(versionSpec)
displayName: python$(versionSpec)
- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
displayName: pip
- script: pytest
displayName: pytest $(testsName)
- script: pycodestyle $(moduleName) $(testsName)
displayName: pycodestyle
- script: pydocstyle $(moduleName) $(testsName)
displayName: pydocstyle
- script: pylint --rcfile=setup.cfg $(moduleName) $(testsName)
displayName: pylint
- script: codecov
displayName: codecov
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- script: python-codacy-coverage -r coverage.xml
displayName: python-codacy-coverage
env:
CODACY_PROJECT_TOKEN: $(CODACY_PROJECT_TOKEN)