forked from SoCreate/service-fabric-distributed-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (46 loc) · 1.13 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
trigger:
- master
pr: none
pool:
vmImage: Ubuntu-16.04
variables:
buildConfiguration: Release
projectPaths: src/**/*.csproj
testProjectPaths: 'tests/**/*[Tt]ests/*.csproj'
steps:
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: $(testProjectPaths)
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(projectPaths)
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: $(projectPaths)
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Pack
inputs:
command: pack
packagesToPack: $(projectPaths)
nobuild: true
- task: NuGetToolInstaller@0
displayName: Use NuGet 4.9.3
inputs:
versionSpec: 4.9.3
- task: NuGetCommand@2
displayName: NuGet push
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: Public Nuget
- task: PublishBuildArtifacts@1
displayName: Publish Artifact
inputs:
PathtoPublish: $(build.artifactstagingdirectory)