1 Star 0 Fork 0

Git工具集 / GitVersion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
azure-pipelines.yml 2.36 KB
一键复制 编辑 原始数据 按行查看 历史
trigger:
branches:
include:
- master
- fix/*
- feature/*
pr:
branches:
include:
- master
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true'
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
stages:
- stage: Build
displayName: 'Build'
jobs:
- job: Build
strategy:
matrix:
'Windows':
VM_IMAGE: 'windows-latest'
'Linux':
VM_IMAGE: 'ubuntu-latest'
'macOS':
VM_IMAGE: 'macOS-latest'
pool:
vmImage: $(VM_IMAGE)
steps:
- template: .azurepipelines/build.yml
- stage: Test
displayName: 'Unit Test'
dependsOn: []
jobs:
- job: Test
strategy:
matrix:
'Windows':
VM_IMAGE: 'windows-latest'
'Linux':
VM_IMAGE: 'ubuntu-latest'
'macOS':
VM_IMAGE: 'macOS-latest'
pool:
vmImage: $(VM_IMAGE)
steps:
- template: .azurepipelines/test.yml
- stage: Artifact_Test
displayName: 'Artifacts test'
dependsOn:
- Build
- Test
condition: succeeded()
jobs:
- template: .azurepipelines/artifacts-test.yml
parameters:
name: Linux
vmImage: 'ubuntu-latest'
distros: [ 'alpine.3.10-x64', 'centos.7-x64', 'debian.9-x64', 'fedora.30-x64', 'ubuntu.16.04-x64', 'ubuntu.18.04-x64' ]
dotnetVersions: [ '2.1', '3.1' ]
- stage: Docker
displayName: 'Docker Build & Test'
dependsOn: Artifact_Test
condition: succeeded()
jobs:
- template: .azurepipelines/docker.yml
parameters:
name: Linux
vmImage: 'ubuntu-latest'
distros: [ 'alpine.3.10-x64', 'centos.7-x64', 'debian.9-x64', 'fedora.30-x64', 'ubuntu.16.04-x64', 'ubuntu.18.04-x64' ]
dotnetVersions: [ '2.1', '3.1' ]
- stage: Publish
displayName: 'Publish'
dependsOn: Artifact_Test
condition: succeeded()
jobs:
- job: Publish
pool:
vmImage: windows-latest
strategy:
matrix:
CI:
TASK_NAME: 'CI'
NuGet:
TASK_NAME: 'NuGet'
Chocolatey:
TASK_NAME: 'Chocolatey'
Documentation:
TASK_NAME: 'Documentation'
steps:
- template: .azurepipelines/publish.yml
parameters:
taskName: $(TASK_NAME)
- stage: Release
displayName: 'Release'
dependsOn:
- Docker
- Publish
condition: succeeded()
jobs:
- job: Release
pool:
vmImage: windows-latest
steps:
- template: .azurepipelines/release.yml
C#
1
https://gitee.com/vcs-all-in-one/GitVersion.git
git@gitee.com:vcs-all-in-one/GitVersion.git
vcs-all-in-one
GitVersion
GitVersion
master

搜索帮助