forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
144 lines (121 loc) · 4.23 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
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
resources:
containers:
- container: nv-bionic-wasm
image: nventive/wasm-build:1.1-bionic
jobs:
- template: .azure-devops-wasm-uitests.yml
- template: .azure-devops-macos.yml
- job: VS_Latest
pool:
vmImage: 'vs2017-win2016'
variables:
CombinedConfiguration: Release|Any CPU
CI_Build: true
# This is required to be able to use hard links as much as possible
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
steps:
- checkout: self
clean: true
- task: GitVersion@4
inputs:
updateAssemblyInfo: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.9.1
checkLatest: false
# Required for the Wasm uitests project
- task: NodeTool@0
- task: MSBuild@1
inputs:
solution: Build/Uno.UI.Build.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:CheckExclusions=True "/p:CombinedConfiguration=$(CombinedConfiguration)" /nodeReuse:true /detailedsummary /m:16 /nr:false /bl:$(build.artifactstagingdirectory)\build.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: VSTest@2
inputs:
testAssemblyVer2: |
**\*test*.dll
!**\obj\**
!**\*Wasm.Test*.dll
!**\*.RuntimeTests.dll
vstestLocationMethod: version
vsTestVersion: latest
testSelector: testAssemblies
- task: CopyFiles@2
inputs:
SourceFolder: $(build.sourcesdirectory)/Build
Contents: '*.nupkg'
TargetFolder: $(build.artifactstagingdirectory)\vslatest
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: CopyFiles@2
inputs:
SourceFolder: $(build.sourcesdirectory)\src\SamplesApp\SamplesApp.Wasm\bin\Release\netstandard2.0\dist
Contents: '**\*.*'
TargetFolder: $(build.artifactstagingdirectory)\sampleapp-wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno Platform"
SignPackageDescription: "The Uno Platform"
ArtifactDirectory: $(build.artifactstagingdirectory)\vslatest
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages
ArtifactType: Container
- job: Documentation
pool:
vmImage: 'vs2017-win2016'
variables:
CombinedConfiguration: Release|Any CPU
CI_Build: true
steps:
- checkout: self
clean: true
- task: GitVersion@4
# Ignore gitversion for forks, until this is fixed:
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
updateAssemblyInfo: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.9.1
checkLatest: false
- task: MSBuild@1
inputs:
solution: Build/Uno.UI.Build.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /t:GenerateDoc /p:CheckExclusions=True "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: PublishBuildArtifacts@1
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages
ArtifactType: Container