1 Star 0 Fork 0

kekliu/YouCompleteMe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
azure-pipelines.yml 4.97 KB
一键复制 编辑 原始数据 按行查看 历史
Boris Staletic 提交于 2020-11-02 11:36 . Update the ycmd submodule
# 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-20.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_min
displayName: 'Linux Earliest 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-20.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
# use the system vim - should be the minimal supported version
- script: ./test/run_vim_tests --vim /usr/bin/vim
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: linuxvim
displayName: 'Linux Recent 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-20.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.15'
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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kekliu/YouCompleteMe.git
git@gitee.com:kekliu/YouCompleteMe.git
kekliu
YouCompleteMe
YouCompleteMe
master

搜索帮助