-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
azure-pipelines.yml
51 lines (40 loc) · 1.41 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
trigger:
branches:
include:
- master
pool:
vmImage: 'windows-2019'
variables:
solution: 'SitecoreBlazorHosted.sln'
buildConfigurationClient: 'BlazorClient'
buildConfigurationServer: 'BlazorServer'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Installing .NET Core SDK...'
inputs:
version: 3.1.201
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'config'
- script: dotnet build --configuration $(buildConfigurationClient) SitecoreBlazorHosted.Client/SitecoreBlazorHosted.Client.csproj
displayName: 'Building $(buildConfigurationClient)...'
- script: dotnet build --configuration $(buildConfigurationServer) SitecoreBlazorHosted.Server/SitecoreBlazorHosted.Server.csproj
displayName: 'Building $(buildConfigurationServer)...'
- task: DotNetCoreCLI@1
displayName: 'Running tests...'
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfigurationClient)'
- task: DotNetCoreCLI@2
displayName: 'Publishing BlazorClient App...'
inputs:
command: publish
publishWebProjects: false
arguments: '--configuration $(buildConfigurationClient) --output $(Build.ArtifactStagingDirectory) SitecoreBlazorHosted.Client/SitecoreBlazorHosted.Client.csproj'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: 'Publishing Client Artifacts...'