-
Notifications
You must be signed in to change notification settings - Fork 11
/
ci.yaml
114 lines (106 loc) · 3.63 KB
/
ci.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
trigger:
branches:
exclude:
- u/*
pr:
branches:
include:
- main
variables:
- name: TeamName
value: machinelearning-tools
- name: BuildArgs
value: /p:DotNetSignType=$(SigningType)
- ${{ if eq(variables['Build.DefinitionName'], 'dotnet.AzCopyNet') }}:
- group: DotNet-Symbol-Publish
- name: BuildArgs
value: /p:DotNetSignType=$(SigningType)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
/p:PublishToSymbolServer=true
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
jobs:
- template: eng\common\templates\jobs\jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildAssets: false
enablePublishUsingPipelines: true
artifacts:
publish:
logs: true
workspace:
clean: all
jobs:
- job: Build
timeoutInMinutes: 90
strategy:
matrix:
Win-x64-Release:
_configuration: Release
_Use32Bit: false
_platform: x64
pool:
name: VSEngSS-MicroBuild2019-1ES
steps:
- task: MicroBuildSigningPlugin@3
displayName: Install signing plugin
inputs:
signType: $(SigningType)
feedSource: 'https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
condition: and(succeeded(), eq(variables['SigningType'], 'real'), eq(variables['_platform'], 'x64'))
- script: eng\common\CIBuild.cmd
-configuration $(_configuration)
-prepareMachine
-warnAsError 0
-bl
/p:Use32Bit=$(_Use32Bit)
/p:Test=False
/p:Pack=False
/p:Publish=False
/p:Sign=False
$(BuildArgs)
displayName: Build
condition: succeeded()
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
publishTestResults: true
arguments: '--collect "Code coverage"
--no-build
-c $(_configuration)
--settings "CodeCoverage.runsettings"'
projects: '**/*.Test.csproj'
condition: succeeded()
env:
GRANTSETFIXSASTOKEN2: $(GRANTSETFIXSASTOKEN)
- script: eng\common\CIBuild.cmd
-configuration $(_configuration)
-prepareMachine
-warnAsError 0
-bl
/p:Use32Bit=$(_Use32Bit)
/p:Build=False
/p:Test=False
/p:Pack=True
/p:Sign=True
/p:DotNetFinalVersionKind=release
/p:Publish=True
/p:DotNetPublishUsingPipelines=True
$(BuildArgs)
displayName: Pack
condition: succeeded()
- script: eng\common\CIBuild.cmd
-configuration $(_configuration)
-prepareMachine
-warnAsError 0
-bl
/p:Build=False
/p:Test=False
/p:Pack=False
/p:Sign=False
/p:DotNetFinalVersionKind=release
/p:Publish=True
$(BuildArgs)
displayName: Publish to symbol server
condition: and(succeeded(), eq(variables['SigningType'], 'real'))