forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsts-ci.yml
84 lines (73 loc) · 2.2 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
phases:
- phase: VS_Latest
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
CombinedConfiguration: Release|Any CPU
CI_Build: true
steps:
- checkout: self
clean: true
- task: GitVersion@3
inputs:
updateAssemblyInfo: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.7.0
checkLatest: false
- task: NuGetCommand@2
inputs:
command: restore
solution: src/Uno.UI.sln
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
- task: MSBuild@1
inputs:
solution: Build/Uno.UI.proj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /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\**
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: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages
ArtifactType: Container
- task: PublishSymbols@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
SymbolsFolder:
SearchPattern: '**/bin/**/*.pdb'
IndexSources: true
PublishSymbol: true
SymbolServerType: TeamServices
DetailedLog: false
TreatNotIndexedAsWarning: false
SymbolsArtifactName: Symbols_$(BuildConfiguration)
- powershell: |
git clean -fdx
displayName: Cleanup git repo
condition: always()