-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
82 lines (75 loc) · 1.86 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
77
78
79
80
81
82
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger:
- master
jobs:
- job: test
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
maxParallel: 4
steps:
# - template: .ci/azure-templates/apt-steps.yml
- template: .ci/azure-templates/conda-steps.yml
- template: .ci/azure-templates/pip-steps.yml
- script: py.test --junitxml=test-results.xml --cov aiida_zeopp --cov-append .
displayName: 'Run pytest'
- task: PublishTestResults@2
inputs:
testResultsFiles: 'test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
- job: docs
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
maxParallel: 4
variables:
READTHEDOCS: 'True'
steps:
- template: .ci/azure-templates/pip-steps.yml
- script: cd docs; make
displayName: 'Make docs'
- job: pre_commit
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
maxParallel: 4
steps:
- template: .ci/azure-templates/pip-steps.yml
- script: pre-commit install; pre-commit run --all-files || ( git status --short; git diff ; exit 1 );
displayName: 'Run pre-commit check'
#- job: coveralls
# dependsOn:
# - test
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.6'
# architecture: 'x64'
#
# - script: pip install coveralls
# displayName: 'install coveralls'
#
# - script: coveralls
# displayName: 'Upload test coverage to coveralls.io'
# - job: 'Publish'
# dependsOn:
# - test
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.x'
# architecture: 'x64'
# - script: python setup.py sdist
# displayName: 'Build sdist'