forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
95 lines (82 loc) · 2.73 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
95
trigger:
- master
- develop
- rel/*
queue: Hosted VS2017
steps:
- task: BatchScript@1
inputs:
filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
displayName: Setup Environment Variables
- task: NuGetToolInstaller@0
displayName: Use NuGet 4.6.2
inputs:
versionSpec: 4.6.2
- task: DotNetCoreCLI@2
inputs:
command: build
projects: script/setversion.csproj
arguments: -c Release
displayName: Set Version
condition: eq(variables['system.pullrequest.isfork'], false)
- powershell: |
nuget install SignClient -Version 0.9.1 -SolutionDir $(Build.SourcesDirectory) -Verbosity quiet -ExcludeVersion
.\build.cmd
displayName: Build
env:
SIGNCLIENT_SECRET: $(SignClientSecret)
SIGNCLIENT_USER: $(SignClientUser)
VSTS_ACCESS_TOKEN: $(System.AccessToken)
COVERALLS_TOKEN: $(COVERALLS_TOKEN)
- task: CopyFiles@2
inputs:
Contents: 'artifacts/*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory)\packages'
flattenFolders: true
condition: eq(variables['system.pullrequest.isfork'], false)
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\packages'
artifactType: container
artifactName: Packages
condition: eq(variables['system.pullrequest.isfork'], false)
- task: CopyFiles@2
inputs:
Contents: '**/*.binlog'
TargetFolder: '$(build.artifactstagingdirectory)\binlogs'
flattenFolders: true
condition: eq(variables['system.pullrequest.isfork'], false)
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\binlogs'
artifactType: container
artifactName: Logs
condition: eq(variables['system.pullrequest.isfork'], false)
- task: CopyFiles@2
inputs:
Contents: '**/bin/*'
TargetFolder: '$(build.artifactstagingdirectory)\binaries'
condition: eq(variables['system.pullrequest.isfork'], false)
- task: PublishBuildArtifacts@1
displayName: Publish Binaries
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\binaries'
artifactType: container
artifactName: Binaries
condition: eq(variables['system.pullrequest.isfork'], false)
- task: CopyFiles@2
inputs:
Contents: 'src/ReactiveUI.**/Events_*.cs'
TargetFolder: '$(build.artifactstagingdirectory)\Events'
condition: eq(variables['system.pullrequest.isfork'], false)
- task: PublishBuildArtifacts@1
displayName: Publish Generated Events
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\Events'
artifactType: container
artifactName: Events
condition: eq(variables['system.pullrequest.isfork'], false)