forked from dotnet/reactive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.rx.yml
102 lines (87 loc) · 2.95 KB
/
azure-pipelines.rx.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
95
96
97
98
99
100
101
trigger:
branches:
include:
- master
- rel/*
paths:
include:
- Rx.NET/Source/*
- .editorconfig
- azure-pipelines.rx.yml
pr:
branches:
include:
- master
- rel/*
paths:
include:
- Rx.NET/Source/*
- .editorconfig
- azure-pipelines.rx.yml
pool:
vmImage: vs2017-win2016
variables:
BuildConfiguration: Release
BuildPlatform: Any CPU
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '3.0.100-preview-009812'
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
- script: nbgv cloud -a -p Rx.NET\Source
displayName: Set Version
- task: MSBuild@1
displayName: Build System.Reactive.sln
inputs:
solution: Rx.NET/Source/System.Reactive.sln
msbuildArguments: /restore /t:build /p:CreatePackage=true /p:NoPackageAnalysis=true /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\artifacts
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
maximumCpuCount: true
- task: NuGetCommand@2
displayName: Pack compatibility package
inputs:
command: custom
arguments: pack Rx.NET/Source/facades/System.Reactive.Compatibility.nuspec -Version $(NBGV_NuGetPackageVersion) -MinClientVersion 2.12 -NoPackageAnalysis -outputdirectory $(Build.ArtifactStagingDirectory)\artifacts
- task: MSBuild@1
displayName: Build for Test (ppdb) workaround
inputs:
solution: Rx.NET/Source/System.Reactive.sln
msbuildArguments: /t:build /p:DebugType=portable
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
maximumCpuCount: true
- task: DotNetCoreCLI@2
inputs:
command: test
projects: Rx.NET/Source/tests/Tests.System.Reactive/*.csproj
arguments: -c $(BuildConfiguration) --no-build --no-restore --filter "SkipCI!=true" --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)/Rx.NET/Source/CodeCoverage.runsettings
displayName: Run Unit Tests
- task: DotNetCoreCLI@2
inputs:
command: test
projects: Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Tests.System.Reactive.ApiApprovals.csproj
arguments: -c $(BuildConfiguration) --no-build --no-restore
displayName: Run Api Approvals Tests
- task: whitesource.ws-bolt.bolt.wss.WhiteSource Bolt@18
displayName: 'WhiteSource Bolt'
enabled: false
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: Rx.NET/Source/build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: $(Build.ArtifactStagingDirectory)\artifacts
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)\artifacts
ArtifactName: artifacts
publishLocation: Container