-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
azure-pipelines.yml
105 lines (85 loc) · 2.85 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
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pr:
- master
- release
pool:
vmImage: 'windows-2019'
variables:
solution: 'MaterialDesignToolkit.Wpf.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'AppVeyor'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk 3.0.100-preview7-012821'
inputs:
version: '3.0.100-preview7-012821'
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.3.0'
- task: NuGetCommand@2
displayName: 'NuGet restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: |
MaterialDesignToolkit.Wpf.sln
- powershell: .paket\paket.exe restore
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: '$(solution)'
arguments: '/p:Configuration=AppVeyor /p:Platform="Any CPU" /p:MDIX_CORE_VERSION=$(mdixVersion).$(Build.BuildID) /p:MDIX_COLORS_VERSION=$(mdixColorsVersion).$(Build.BuildID) /p:MDIX_MAHAPPS_VERSION=$(mdixMahappsVersion).$(Build.BuildID)'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '$(solution)'
- task: PublishPipelineArtifact@0
name: "PublishDemoApp"
inputs:
artifactName: 'DemoApp'
targetPath: 'MainDemo.Wpf/bin/AppVeyor'
- task: PowerShell@2
displayName: 'Copy MDIX nuspec'
inputs:
targetType: 'inline'
script: 'Copy-Item -Path ".\\MaterialDesignThemes.nuspec" -Destination ".\\MaterialDesignThemes.Wpf\\bin\\AppVeyor\\"'
ignoreLASTEXITCODE: true
- task: PowerShell@2
displayName: 'Copy CS Files'
inputs:
targetType: 'inline'
script: 'robocopy MaterialDesignThemes.Wpf MaterialDesignThemes.Wpf\\bin\\AppVeyor\\src *.cs /S /XD bin obj'
ignoreLASTEXITCODE: true
- task: PowerShell@2
displayName: 'Copy CS Files'
inputs:
targetType: 'inline'
script: 'Copy-Item -Path ".\\MaterialDesignColors.nuspec" -Destination ".\\MaterialDesignColors.Wpf\\bin\\AppVeyor\\"'
ignoreLASTEXITCODE: true
- task: PowerShell@2
displayName: 'Copy CS Files'
inputs:
targetType: 'inline'
script: 'Copy-Item -Path ".\\MaterialDesignThemes.MahApps.nuspec" -Destination ".\\MaterialDesignThemes.MahApps\\bin\\Release\\"'
ignoreLASTEXITCODE: true
- task: PublishPipelineArtifact@0
name: "PublishMaterialDesign"
inputs:
artifactName: 'MDIX'
targetPath: 'MaterialDesignThemes.Wpf/bin/AppVeyor'
- task: PublishPipelineArtifact@0
name: "PublishMaterialDesignColors"
inputs:
artifactName: 'MDIX.Colors'
targetPath: 'MaterialDesignColors.Wpf/bin/AppVeyor'
- task: PublishPipelineArtifact@0
name: "PublishMaterialDesignMahApps"
inputs:
artifactName: 'MDIX.MahApps'
targetPath: 'MaterialDesignThemes.MahApps/bin/Release'