forked from ycm-core/YouCompleteMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
128 lines (128 loc) · 3.93 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
# A note about CODECOV_TOKEN
#
# To set the token for a specific Pipeline:
# - navigate to codecov.io and log in
# - click the github org, repo
# - click settings
# - copy the "Repository upload token"
# - go to the pipeline in the Azure web ui, and click Edit
# - Find the "Variables" button and click add
# - Call it "CODECOV_TOKEN"
# - Set the value to the repository upload token you got earlier
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-16.04'
strategy:
matrix:
'Python 3.6':
YCM_PYTHON_VERSION: '3.6.3'
maxParallel: 2
variables:
COVERAGE: true
# Cannot take advantage of the UsePythonVersion task because headers are
# missing from the provided Python.
steps:
- checkout: self
submodules: recursive
- script: ./azure/linux/install_dependencies.sh
displayName: Install dependencies
- script: ./azure/run_tests.sh
displayName: Run tests
- script: ./azure/send_coverage.sh
displayName: Send coverage
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'
- job: linuxvim
displayName: 'Linux Vim tests'
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-16.04'
strategy:
matrix:
'Python 3.6':
IMAGE: ycm-vim-py3
PIP: pip3
maxParallel: 2
variables:
COVERAGE: true
YCM_TEST_STDOUT: true
container: 'youcompleteme/$(IMAGE):test'
steps:
- checkout: self
submodules: recursive
- bash: sudo -H $(PIP) install -r python/test_requirements.txt
displayName: Install dependencies
- bash: python3 ./install.py --ts-completer --clangd-completer --java-completer
displayName: Build ycmd
- script: ./test/run_vim_tests
displayName: Run vim tests
- bash: codecov --disable gcov --name '$(Agent.JobName)'
displayName: Send coverage
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.13'
strategy:
matrix:
'Python 3.6':
YCM_PYTHON_VERSION: '3.6.3'
maxParallel: 2
variables:
COVERAGE: true
steps:
- checkout: self
submodules: recursive
- script: ./azure/macos/install_dependencies.sh
displayName: Install dependencies
- script: ./azure/run_tests.sh
displayName: Run tests
- script: ./azure/send_coverage.sh
displayName: Send coverage
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
CODECOV_JOB_NAME: '$(Agent.JobName)'
- job: windows
displayName: Windows
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.7 32-bit':
YCM_PYTHON_VERSION: '3.7'
YCM_ARCH: x86
'Python 3.7 64-bit':
YCM_PYTHON_VERSION: '3.7'
YCM_ARCH: x64
maxParallel: 3
variables:
COVERAGE: true
steps:
- checkout: self
submodules: recursive
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/use-python-version?view=azure-devops
# for a description of this task.
- task: UsePythonVersion@0
inputs:
versionSpec: '$(YCM_PYTHON_VERSION)'
architecture: '$(YCM_ARCH)'
- script: pip install -r python/test_requirements.txt
displayName: Install dependencies
- script: python run_tests.py
displayName: Run tests
- script: codecov --name "$(Agent.JobName)"
displayName: Send coverage
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)