forked from dbosoft/YaNco
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
105 lines (89 loc) · 2.35 KB
/
azure-pipelines.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
102
103
104
105
trigger:
branches:
include:
- master
pool:
name: default
variables:
buildConfiguration: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: restore packages
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: DeleteFiles@1
displayName: delete old packages
inputs:
sourceFolder: $(Build.SourcesDirectory)\build-packages
contents: '**'
- task: CopyFiles@2
displayName: copy nwrfcsdk
inputs:
sourceFolder: \\dfs\Development\Packages\nwrfcsdk
targetFolder: $(Build.SourcesDirectory)\nwrfcsdk
cleanTargetFolder: true
- task: UseGitVersion@5
inputs:
versionSpec: '5.x'
# x86 platform builds
- task: VSBuild@1
displayName: x86 platform builds
inputs:
platform: x86
configuration: Release
# x64 platform builds
- task: VSBuild@1
displayName: x64 platform builds
inputs:
platform: x64
configuration: Release
# cleanup packages created in platform builds
- task: DeleteFiles@1
displayName: cleanup packages created in platform builds
inputs:
sourceFolder: $(Build.SourcesDirectory)\build-packages
contents: '**'
# final build
- task: VSBuild@1
displayName: package build
inputs:
platform: 'Any CPU'
configuration: Release
# packing
# due to issues with GitVersion task pack one after the other...
- task: DotNetCoreCLI@2
displayName: pack YaNco.Primitives
inputs:
command: 'pack'
packagesToPack: '**/YaNco.Primitives.csproj'
nobuild: true
versioningScheme: 'off'
- task: DotNetCoreCLI@2
displayName: pack YaNco.Abstractions
inputs:
command: 'pack'
nobuild: true
packagesToPack: '**/YaNco.Abstractions.csproj'
- task: DotNetCoreCLI@2
displayName: pack YaNco.Core
inputs:
command: 'pack'
nobuild: true
packagesToPack: '**/YaNco.Core.csproj'
- task: DotNetCoreCLI@2
displayName: pack YaNco
inputs:
command: 'pack'
nobuild: true
packagesToPack: '**/YaNco.csproj'
- task: PublishBuildArtifacts@1
inputs:
ArtifactName: build-packages
- task: NuGetCommand@2
displayName: publish to project nuget repo
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '59a3608a-9bed-4cb4-9467-6efaaa3cbef5/1e425ef4-e3a0-4927-b4c0-2beff753cb88'