加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 5.12 KB
一键复制 编辑 原始数据 按行查看 历史
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.0'
YCM_CLANG_TIDY: true
COVERAGE: false
maxParallel: 5
variables:
COVERAGE: true
steps:
- checkout: self
submodules: recursive
- 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
- 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
- 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
- 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)'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化