forked from PrismLibrary/Prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
217 lines (191 loc) · 5.92 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
trigger:
batch: true
branches:
include:
- master
- devOps
paths:
include:
- build/*
- e2e/*
- src/*
- tests/*
pr:
branches:
include:
- master
paths:
include:
- build/*
- e2e/*
- src/*
- tests/*
name: $(Build.BuildId)
variables:
- name: VMImage
value: windows-latest
- name: MacImage
value: macOS-latest
- name: LinuxImage
value: ubuntu-latest
- name: BuildConfiguration
value: Release
- name: BuildPlatform
value: Any CPU
- name: AppCenterDroidAppName
value: Sandbox.Android
- name: AppCenterDroidDevices
value: 8804278a
- name: AppCenteriOSAppName
value: Sandbox.iOS
- name: AppCenteriOSDevices
value: b062026c
- group: SignClient
- group: AppleCert
stages:
- stage: buildTest
displayName: Build & Test
jobs:
- template: jobs/prism-core.yml
- template: jobs/prism-forms.yml
- template: jobs/prism-wpf.yml
- template: jobs/prism-uno.yml
# - stage: e2e
# displayName: End to End
# jobs:
# - template: jobs/e2e-wpf.yml
# - template: jobs/e2e-uno.yml
# - template: jobs/e2e-android.yml
# parameters:
# versionName: '8.0.$(Build.BuildId)'
# - template: jobs/e2e-ios.yml
# parameters:
# versionName: '8.0.$(Build.BuildId)'
# - template: jobs/uno-uitest.yml
# Need to refactor this to run locally like Uno UI tests
# - template: jobs/e2e-uitest.yml
# parameters:
# artifactName: E2E-Android
# e2eJobName: e2eAndroid
# appFile: 'com.prismlibrary.helloworld.apk'
# appName: $(AppCenterDroidAppName)
# devices: $(AppCenterDroidDevices)
# - template: jobs/e2e-uitest.yml
# parameters:
# artifactName: E2E-iOS
# e2eJobName: e2eiOS
# appFile: 'HelloWorld.iOS.ipa'
# dsymDirectory: 'HelloWorld.iOS.app.dSYM'
# appName: $(AppCenteriOSAppName)
# devices: $(AppCenteriOSDevices)
- stage: buildPackage
displayName: Build Prism Library
jobs:
- template: jobs/prism-lib.yml
# - stage: appCenter
# displayName: E2E Deploy
# jobs:
# - deployment: E2EAndroidDeploy
# displayName: 'E2E Android - App Center'
# environment: 'App Center'
# strategy:
# runOnce:
# deploy:
# steps:
# - template: steps/appcenter-deploy.yml
# parameters:
# appName: $(AppCenterDroidAppName)
# appFile: '$(Pipeline.Workspace)/E2E-Android/com.prismlibrary.helloworld.apk'
# distributionGroup: '88fd9e93-9e2e-4a44-bda4-e7d6bf8f7a10'
# - deployment: E2EiOSDeploy
# displayName: 'E2E iOS - App Center'
# environment: 'App Center'
# strategy:
# runOnce:
# deploy:
# steps:
# - template: steps/appcenter-deploy.yml
# parameters:
# appName: 'Sandbox.iOS'
# appFile: '$(Pipeline.Workspace)/E2E-iOS/HelloWorld.iOS.ipa'
# symbolsDsymFiles: '$(Pipeline.Workspace)/E2E-iOS/HelloWorld.iOS.app.dSYM'
# distributionGroup: 'f411f43a-68b9-455e-9b58-bc702439a3d9'
# - deployment: E2EWpfDeploy
# displayName: 'E2E Wpf - App Center'
# environment: 'App Center'
# strategy:
# runOnce:
# deploy:
# steps:
# - template: steps/appcenter-deploy.yml
# parameters:
# appName: 'E2E.Wpf'
# appFile: '$(Pipeline.Workspace)/E2E-Wpf/HelloWorld.zip'
# distributionGroup: '786183fd-2cad-4d31-913a-e4f943ab00cd'
- stage: deploy
displayName: CI Deploy Artifacts
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/rel')))
jobs:
- deployment: SponsorConnect
displayName: SponsorConnect.dev
environment: SponsorConnect
strategy:
runOnce:
deploy:
steps:
- task: NuGetToolInstaller@1
displayName: Use latest NuGet
inputs:
checkLatest: true
- task: NuGetCommand@2
displayName: NuGet Push
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg;$(Pipeline.Workspace)/**/*.snupkg'
nuGetFeedType: external
publishFeedCredentials: 'SponsorConnect'
- stage: nugetDeploy
displayName: NuGet.org Deploy
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/rel'), eq(variables['system.pullrequest.isfork'], false))
jobs:
- deployment: NuGet
displayName: NuGet.org
environment: NuGet
strategy:
runOnce:
deploy:
steps:
- checkout: self
displayName: Get Build Resources
- powershell: build/Process-Artifacts.ps1
displayName: Process Artifacts for Release
- task: ArchiveFiles@2
displayName: 'Archive Assembly Artifacts'
inputs:
rootFolderOrFile: '$(DLLArtifactsPath)'
archiveFile: '$(DLLArtifactsZip)'
- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
gitHubConnection: 'PrismLib'
title: '$(ReleaseDisplayName)'
tagSource: manual
tag: 'v$(VersionName)'
isPreRelease: $(IS_PREVIEW)
assets: |
$(DLLArtifactsZip)
$(Pipeline.Workspace)/**/*.nupkg
$(Pipeline.Workspace)/**/*.snupkg
isDraft: true
addChangeLog: true
- task: NuGetToolInstaller@1
displayName: Use latest NuGet
inputs:
checkLatest: true
- task: NuGetCommand@2
displayName: NuGet Push
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg;$(Pipeline.Workspace)/**/*.snupkg'
nuGetFeedType: external
publishFeedCredentials: 'NuGet.org'