代码拉取完成,页面将自动刷新
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(Build.SourceVersion)
# Master build triggers
trigger:
- master
# PR Triggers
pr:
autoCancel: true
branches:
include:
- master
paths:
exclude:
- README.md
jobs:
- job: Kickoff
displayName: "Kickoff"
pool:
vmImage: 'ubuntu-latest'
steps:
- script: ./scripts/set-short-commit-variable.sh
name: shortCommitVariableStep
- job: Hygiene_Checks
displayName: 'Hygiene Checks'
timeoutInMinutes: 0
pool:
vmImage: 'macOS 10.14'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /Users/runner/.esy/3__________________________________________________________________/i
ESY__CACHE_BUILD_PATH: /Users/runner/.esy/3__________________________________________________________________/b
ESY__CACHE_SOURCE_TARBALL_PATH: /Users/runner/.esy/source/i
MACOSX_DEPLOYMENT_TARGET: 10.12
# ESY__NPM_ROOT: /usr/local/lib/node_modules/esy
steps:
- template: .ci/use-node.yml
- script: brew update
- script: brew install ragel
- template: .ci/restore-build-cache.yml
- template: .ci/swap-xcode.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-check-hygiene.yml
- template: .ci/publish-build-cache.yml
- job: Linux
displayName: 'Linux - Ubuntu 18.04'
timeoutInMinutes: 90
pool:
vmImage: 'ubuntu-18.04'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i
ESY__CACHE_BUILD_PATH: /home/vsts/.esy/3_____________________________________________________________________/b
ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i
# ESY__NPM_ROOT: /opt/hostedtoolcache/node/8.14.0/x64/lib/node_modules/esy
steps:
- template: .ci/clean-linux-deps.yml
- template: .ci/restore-build-cache.yml
- template: .ci/use-node.yml
- script: sudo apt-get update
- script: sudo apt-get install -y libncurses5-dev libacl1-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils mesa-utils-extra ragel libgtk-3-dev nasm
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
- template: .ci/run-integration-tests.yml
- template: .ci/publish-build-cache.yml
- job: CentOS
displayName: 'Linux - CentOS - Docker Image'
timeoutInMinutes: 0
pool:
vmImage: 'Ubuntu 16.04'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i
ESY__CACHE_BUILD_PATH: /home/vsts/.esy/3_____________________________________________________________________/b
ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i
# ESY__NPM_ROOT: /opt/hostedtoolcache/node/8.14.0/x64/lib/node_modules/esy
steps:
- template: .ci/clean-linux-deps.yml
- script: docker build -t centos scripts/docker/centos
displayName: 'docker: build Dockerfile'
- script: docker run --rm --mount src=`pwd`,target=/oni2,type=bind centos /bin/bash -c 'cd oni2 && git --version'
displayName: 'docker: git version (after updating)'
- script: docker run --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined --rm --mount src=`pwd`,target=/oni2,type=bind centos /bin/bash -c 'cd oni2 && ./scripts/docker-build.sh'
displayName: 'docker: build'
- script: docker run --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined --rm --mount src=`pwd`,target=/oni2,type=bind centos /bin/bash -c 'cd oni2 && ./scripts/docker-test.sh'
displayName: 'docker: run tests'
- script: _release/Onivim2.AppDir/usr/bin/Oni2 -f --checkhealth
displayName: 'Release: --checkhealth'
- template: .ci/publish-linux.yml
- job: MacOS
displayName: "MacOS 10.14"
timeoutInMinutes: 0
pool:
vmImage: 'macOS 10.14'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /Users/runner/.esy/3__________________________________________________________________/i
ESY__CACHE_BUILD_PATH: /Users/runner/.esy/3__________________________________________________________________/b
ESY__CACHE_SOURCE_TARBALL_PATH: /Users/runner/.esy/source/i
MACOSX_DEPLOYMENT_TARGET: 10.12
# ESY__NPM_ROOT: /usr/local/lib/node_modules/esy
steps:
- template: .ci/use-node.yml
- script: brew update
- script: brew install ragel
- template: .ci/restore-build-cache.yml
- template: .ci/swap-xcode.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: darwin
- script: _release/Onivim2.App/Contents/MacOS/Oni2 -f --checkhealth
displayName: 'Release: --checkhealth'
- template: .ci/publish-osx.yml
- template: .ci/publish-build-cache.yml
- job: Windows
timeoutInMinutes: 150
pool:
vmImage: 'vs2017-win2016'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /C/Users/VssAdministrator/.esy/3______________________________________________________/i
ESY__CACHE_BUILD_PATH: /C/Users/VssAdministrator/.esy/3______________________________________________________/b
ESY__CACHE_SOURCE_TARBALL_PATH: /C/Users/VssAdministrator/.esy/source/i
# ESY__NPM_ROOT: /C/npm/prefix/node_modules/esy
steps:
- template: .ci/use-node.yml
- powershell: ./scripts/windows/verify-signtool.ps1
displayName: 'Validate signtool path'
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: windows
- script: dir
workingDirectory: _release/win32
displayName: 'check directory contents'
- script: Oni2.exe -f --no-log-colors --checkhealth
workingDirectory: _release/win32
displayName: 'Release: --checkhealth'
- template: .ci/publish-win.yml
- template: .ci/publish-build-cache.yml
- job: ValidateLinuxReleaseUbuntu16
displayName: "Linux: Validate Release (Ubuntu 16.04)"
dependsOn:
- Kickoff
- CentOS
pool:
vmImage: 'ubuntu-16.04'
variables:
ONI2_SHORT_COMMIT_ID: $[dependencies.Kickoff.outputs['shortCommitVariableStep.ONI2_SHORT_COMMIT_ID'] ]
steps:
- script: echo $(ONI2_SHORT_COMMIT_ID)
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Linux'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/linux/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateLinuxReleaseUbuntu18
displayName: "Linux: Validate Release (Ubuntu 18.04)"
dependsOn:
- Kickoff
- CentOS
pool:
vmImage: 'ubuntu-18.04'
variables:
ONI2_SHORT_COMMIT_ID: $[dependencies.Kickoff.outputs['shortCommitVariableStep.ONI2_SHORT_COMMIT_ID'] ]
steps:
- script: echo $(ONI2_SHORT_COMMIT_ID)
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- script: sudo apt-get install libegl1-mesa
displayName: 'Install dependencies'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Linux'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/linux/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateMacOSRelease14
displayName: "MacOS: Validate Release (10.14)"
dependsOn:
- Kickoff
- MacOS
pool:
vmImage: 'macOS-10.14'
variables:
ONI2_SHORT_COMMIT_ID: $[dependencies.Kickoff.outputs['shortCommitVariableStep.ONI2_SHORT_COMMIT_ID'] ]
steps:
- script: echo $(ONI2_SHORT_COMMIT_ID)
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Darwin'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/osx/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateMacOSRelease15
displayName: "MacOS: Validate Release (10.15)"
dependsOn:
- Kickoff
- MacOS
pool:
vmImage: 'macOS-10.15'
variables:
ONI2_SHORT_COMMIT_ID: $[dependencies.Kickoff.outputs['shortCommitVariableStep.ONI2_SHORT_COMMIT_ID'] ]
steps:
- script: echo $(ONI2_SHORT_COMMIT_ID)
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Darwin'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/osx/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateWindowsRelease
timeoutInMinutes: 10
displayName: "Windows: Validate Release"
dependsOn:
- Kickoff
- Windows
pool:
vmImage: 'vs2017-win2016'
variables:
ONI2_SHORT_COMMIT_ID: $[dependencies.Kickoff.outputs['shortCommitVariableStep.ONI2_SHORT_COMMIT_ID'] ]
steps:
- script: echo $(ONI2_SHORT_COMMIT_ID)
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Windows'
downloadPath: '$(System.ArtifactsDirectory)'
- powershell: ./scripts/windows/validate-release.ps1
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- script: echo %PATH%
# The validate-release.ps1 installs Onivim 2 and checks it,
# but we need to check from the command prompt, too via %PATH% - for #872
- script: |
set PATH=%PATH%;D:/a/1/s/Onivim2
Oni2.exe -f --no-log-colors --checkhealth
displayName: "Oni2.exe -f --no-log-colors --checkhealth (run installed)"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。