forked from ycm-core/ycmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
172 lines (172 loc) · 5.66 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
trigger:
branches:
include:
- '*'
pr:
branches:
include:
- '*'
jobs:
- job: linux
displayName: 'Linux'
pool:
# List of available software on this image:
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/linux/Ubuntu1604-README.md
vmImage: 'ubuntu-20.04'
strategy:
matrix:
'Python 3.6 without libclang completer':
YCM_PYTHON_VERSION: '3.6.3'
USE_CLANG_COMPLETER: false
'Python 3.6':
YCM_PYTHON_VERSION: '3.6.3'
'Python 3.6 using Clang compiler':
YCM_PYTHON_VERSION: '3.6.3'
YCM_COMPILER: 'clang'
'C++ benchmark':
YCM_PYTHON_VERSION: '3.6.3'
YCM_BENCHMARK: true
COVERAGE: false
'C++ linting':
YCM_PYTHON_VERSION: '3.9.1'
YCM_CLANG_TIDY: true
COVERAGE: false
maxParallel: 5
variables:
COVERAGE: true
steps:
- checkout: self
submodules: recursive
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: ./azure/linux/install_dependencies.sh
displayName: Install dependencies
- script: ./azure/run_tests.sh
displayName: Run tests
condition: and(succeeded(), and(ne(variables['YCM_BENCHMARK'], 'true'), ne(variables['YCM_CLANG_TIDY'], 'true')))
- script: ./azure/benchmark.sh
displayName: Benchmark
condition: and(succeeded(), eq(variables['YCM_BENCHMARK'], 'true'))
- script: ./azure/lint.sh
displayName: Lint
condition: and(succeeded(), eq(variables['YCM_CLANG_TIDY'], 'true'))
- script: ./azure/send_coverage.sh
displayName: Send coverage
condition: and(succeeded(), eq(variables['COVERAGE'], 'true'))
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'
- job: macos
displayName: 'macOS'
pool:
# List of available software on this image:
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.13-Readme.md
vmImage: 'macOS-10.15'
strategy:
matrix:
'Python 3.6':
YCM_PYTHON_VERSION: '3.6.3'
'C++ benchmark':
YCM_PYTHON_VERSION: '3.6.3'
YCM_BENCHMARK: true
maxParallel: 2
variables:
COVERAGE: true
steps:
- checkout: self
submodules: recursive
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: ./azure/macos/install_dependencies.sh
displayName: Install dependencies
- script: ./azure/run_tests.sh
displayName: Run tests
condition: and(succeeded(), ne(variables['YCM_BENCHMARK'], 'true'))
- script: ./azure/benchmark.sh
displayName: Benchmark
condition: and(succeeded(), eq(variables['YCM_BENCHMARK'], 'true'))
- script: ./azure/send_coverage.sh
displayName: Send coverage
condition: and(succeeded(), eq(variables['COVERAGE'], 'true'))
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'
- job: windows_msvc15
displayName: 'Windows Visual Studio 2017'
pool:
# List of available software on this image:
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md
vmImage: 'vs2017-win2016'
strategy:
matrix:
'Python 3.9 64-bit':
YCM_PYTHON_INSTALLER_URL: 'https://www.python.org/ftp/python/3.9.0/python-3.9.0-amd64.exe'
variables:
MSVC: 15
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin'
steps:
- checkout: self
submodules: recursive
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: azure\windows\install_dependencies.bat
displayName: Install dependencies
- script: azure\windows\run_tests.bat
displayName: Run tests
- script: azure\windows\send_coverage.bat
displayName: Send coverage
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'
- job: windows_msvc17
displayName: 'Windows Visual Studio 2019'
pool:
# List of available software on this image:
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2019-Server2019-Readme.md
vmImage: 'windows-2019'
strategy:
matrix:
'Python 3.9 32-bit':
YCM_PYTHON_INSTALLER_URL: 'https://www.python.org/ftp/python/3.9.0/python-3.9.0.exe'
'Python 3.9 64-bit':
YCM_PYTHON_INSTALLER_URL: 'https://www.python.org/ftp/python/3.9.0/python-3.9.0-amd64.exe'
'C++ benchmark':
YCM_PYTHON_INSTALLER_URL: 'https://www.python.org/ftp/python/3.9.0/python-3.9.0-amd64.exe'
YCM_BENCHMARK: true
COVERAGE: false
maxParallel: 3
variables:
MSVC: 16
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin'
COVERAGE: true
steps:
- checkout: self
submodules: recursive
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: azure\windows\install_dependencies.bat
displayName: Install dependencies
- script: azure\windows\run_tests.bat
displayName: Run tests
condition: and(succeeded(), ne(variables['YCM_BENCHMARK'], 'true'))
- script: azure\windows\benchmark.bat
displayName: Benchmark
condition: and(succeeded(), eq(variables['YCM_BENCHMARK'], 'true'))
- script: azure\windows\send_coverage.bat
displayName: Send coverage
condition: and(succeeded(), eq(variables['COVERAGE'], 'true'))
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'