-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
102 lines (80 loc) · 2.58 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
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: './WoL.sln'
steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
- script: nbgv cloud -c -a
displayName: Set Version / NBGV
- script: dotnet restore "$(solution)"
displayName: dotnet restore
- task: DotNetCoreCLI@2
inputs:
command: 'test'
arguments: '-c Release --no-restore'
# FDD
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
modifyOutputPath: false
publishWebProjects: true
arguments: '-c Release --no-restore --output $(Build.ArtifactStagingDirectory)/fdd'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/fdd'
artifact: 'fdd'
# Win x86 (x64 just uses more space and ram)
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
modifyOutputPath: false
publishWebProjects: true
arguments: '-c Release -r win-x86 --self-contained /p:PublishSingleFile=true --output $(Build.ArtifactStagingDirectory)/win-x86'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/win-x86'
artifact: 'win-x86'
# Win x86 non-single-file for hosting in IIS
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
modifyOutputPath: false
publishWebProjects: true
arguments: '-c Release -r win-x86 --self-contained --output $(Build.ArtifactStagingDirectory)/win-x86-iis'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/win-x86-iis'
artifact: 'win-x86-iis'
# Win ARM (IoT Core / Raspberry PI)
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
modifyOutputPath: false
publishWebProjects: true
arguments: '-c Release -r win-arm --self-contained /p:PublishSingleFile=true --output $(Build.ArtifactStagingDirectory)/win-arm'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/win-arm'
artifact: 'win-arm'
# Linux x64
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
modifyOutputPath: false
publishWebProjects: true
arguments: '-c Release -r linux-x64 --self-contained /p:PublishSingleFile=true --output $(Build.ArtifactStagingDirectory)/linux-x64'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/linux-x64'
artifact: 'linux-x64'