forked from Blazored/LocalStorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
39 lines (30 loc) · 1.02 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
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.300
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: NuGetToolInstaller@0
displayName: 'Installing Nuget Tools...'
inputs:
versionSpec: '4.9.2'
- script: dotnet build --configuration $(buildConfiguration) src/Blazored.LocalStorage/Blazored.LocalStorage.csproj
displayName: 'Building $(buildConfiguration)...'
- script: dotnet test ./tests/Blazored.LocalStorage.Tests/Blazored.LocalStorage.Tests.csproj --configuration $(buildConfiguration)
displayName: 'Testing $(buildConfiguration)...'
- task: DotNetCoreCLI@2
displayName: 'Generating Nuget Package... '
inputs:
command: pack
arguments: --no-build
packagesToPack: src/Blazored.LocalStorage/Blazored.LocalStorage.csproj
configuration: $(buildConfiguration)
- task: PublishBuildArtifacts@1
displayName: 'Publishing Build Artifacts...'