This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.vsts-ci.yml
94 lines (88 loc) · 2.77 KB
/
.vsts-ci.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
trigger:
- main
- master
variables:
teamName: Roslyn-Project-System
_DotNetArtifactsCategory: .NETCore
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
PB_PublishBlobFeedKey:
PB_PublishBlobFeedUrl:
_PublishUsingPipelines: false
_DotNetPublishToBlobFeed: false
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
PB_PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
_DotNetPublishToBlobFeed: true
_PublishUsingPipelines: true
jobs:
- template: /eng/build.yml
parameters:
agentOs: Windows_NT
pool:
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
name: Hosted VS2017
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
name: NetCoreInternal-Pool
queue: BuildPool.Server.Amd64.VS2017
demands:
- agent.os -equals Windows_NT
strategy:
matrix:
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
Build_Debug:
_BuildConfig: Debug
_PublishType: none
_SignType: test
Build_Release:
_BuildConfig: Release
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
_PublishType: none
_SignType: test
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
_PublishType: blob
_SignType: real
- template: /eng/common/templates/job/source-build.yml
parameters:
platform:
name: Managed
container: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: /eng/build.yml
parameters:
agentOs: Linux
pool:
name: DotNetCore-Linux
strategy:
matrix:
Build_Debug:
_BuildConfig: Debug
_PublishType: none
_SignType: test
Build_Release:
_BuildConfig: Release
_PublishType: none
_SignType: test
_PREVIEW_VSTS_DOCKER_IMAGE: microsoft/dotnet-buildtools-prereqs:ubuntu-14.04-cross-0cd4667-20170319080304
- template: /eng/build.yml
parameters:
agentOs: Darwin
pool:
name: Hosted macOS
strategy:
matrix:
Build_Debug:
_BuildConfig: Debug
_PublishType: none
_SignType: test
Build_Release:
_BuildConfig: Release
_PublishType: none
_SignType: test
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/job/publish-build-assets.yml
parameters:
publishUsingPipelines: true
dependsOn:
- Windows_NT
- Source_Build_Managed
pool:
name: Hosted VS2017