forked from unoplatform/Uno.Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsts-qa.internal.yml
169 lines (146 loc) · 4.25 KB
/
.vsts-qa.internal.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
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)/.nuget
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)/.nuget-http-cache
UnoPackageOutputPath: $(Build.ArtifactStagingDirectory)/Packages
jobs:
- job: UWP
pool:
name: Default
demands:
- VS15.7.2
workspace:
clean: all
steps:
- checkout: self
clean: true
lfs: true
- task: DownloadSecureFile@1
inputs:
secureFile: 'b6a5d0ed-c041-44c7-8db9-9c127d0ae8a9'
- task: gittools.gitversion.gitversion-task.GitVersion@4
displayName: 'Generate version'
- task: NuGetToolInstaller@0
displayName: 'Install NuGet 4.7.0'
inputs:
versionSpec: 4.7.0
checkLatest: false
- task: NuGetCommand@2
displayName: 'Restore solution packages'
inputs:
command: restore
solution: src\Uno.Playground.sln
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
- task: MSBuild@1
displayName: 'Update version'
inputs:
solution: src\Build\Build.proj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
displayName: 'Build solution'
inputs:
solution: src\Uno.Playground.sln
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /p:AndroidSigningKeyStore=$(DownloadSecureFile.SecureFilePath) /p:AndroidSigningKeyPass=$(AndroidSigningKeyPass) /p:AndroidSigningStorePass=$(AndroidSigningStorePass)
configuration: Release
platform: 'Any CPU'
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
condition: always()
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: drop
ArtifactType: Container
- job: MacOS_Agent
pool:
name: Default
demands:
- Agent.OS -equals Darwin
- Xamarin.iOS -equals Latest
workspace:
clean: all
variables:
TargetProject: $(Build.SourcesDirectory)/src/Uno.Playground.iOS/Uno.Playground.iOS.csproj
steps:
- checkout: self
clean: true
lfs: true
#Fixes gitversion task
- bash: |
shopt -s nullglob
function join_by { local IFS="$1"; shift; echo "$*"; }
lib_path=$(join_by ';' $(Agent.WorkFolder)/_tasks/GitVersion*/4.0.*/lib/osx)
echo LD_LIBRARY_PATH: $lib_path
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$lib_path"
- task: gittools.gitversion.gitversion-task.GitVersion@4
displayName: 'Generate version'
- task: NuGetToolInstaller@0
displayName: 'Install NuGet 4.7.0'
inputs:
versionSpec: 4.7.0
checkLatest: false
- task: NuGetCommand@2
displayName: 'Restore iOS packages'
inputs:
command: restore
solution: $(TargetProject)
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
noCache: true
- task: NuGetCommand@2
displayName: 'Restore build packages'
inputs:
command: restore
solution: $(Build.SourcesDirectory)/src/Build/Build.csproj
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
noCache: true
- task: MSBuild@1
displayName: 'Update version'
inputs:
solution: src/Build/build.proj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments:
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
displayName: 'Build iOS project'
inputs:
solution: $(TargetProject)
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
configuration: Release
platform: iPhone
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: drop
ArtifactType: Container