forked from dotnet/symreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
71 lines (64 loc) · 2.3 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
resources:
- repo: self
clean: true
queue:
name: VSEng-MicroBuildVS2017
demands: Cmd
variables:
BuildConfiguration: Release
TeamName: Roslyn
steps:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
displayName: Install Signing Plugin
inputs:
signType: $(SignType)
esrpSigning: true
condition: and(succeeded(), ne(variables['SignType'], ''))
- script: eng\common\CIBuild.cmd
-configuration $(BuildConfiguration)
/p:PB_PublishBlobFeedKey=$(PB_PublishBlobFeedKey)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
/p:DotNetSignType=$(SignType)
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
displayName: Build
- task: PublishTestResults@1
displayName: Publish Test Results
inputs:
testRunner: XUnit
testResultsFiles: 'artifacts/TestResults/$(BuildConfiguration)/*.xml'
mergeTestResults: true
testRunTitle: 'Unit Tests'
condition: succeededOrFailed()
- task: NuGetPublisher@0
displayName: Publish NuGet Packages to MyGet
inputs:
searchPattern: 'artifacts\packages\$(BuildConfiguration)\Shipping\*.nupkg'
connectedServiceName: 'SymReader NuGet feed'
nuGetVersion: 4.0.0.2283
condition: succeeded()
- task: CopyPublishBuildArtifacts@1
displayName: Publish Artifacts
inputs:
CopyRoot: '$(Build.SourcesDirectory)'
Contents: |
artifacts\bin\$(BuildConfiguration)
artifacts\log\$(BuildConfiguration)
artifacts\TestResults\$(BuildConfiguration)
artifacts\SymStore\$(BuildConfiguration)
artifacts\packages\$(BuildConfiguration)
ArtifactName: '$(Build.BuildNumber)'
ArtifactType: FilePath
TargetPath: '$(DropRoot)\$(TeamName)\$(Build.DefinitionName)'
condition: succeededOrFailed()
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Cleanup
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: Publish MicroBuild Artifacts
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\MicroBuild\Output'
ArtifactName: '$(Build.BuildNumber)'
publishLocation: FilePath
TargetPath: '$(DropRoot)\$(TeamName)\$(Build.DefinitionName)'
condition: succeededOrFailed()