-
Notifications
You must be signed in to change notification settings - Fork 71
/
azure-pipelines.yml
58 lines (47 loc) · 1.52 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Install .net core 3.1'
inputs:
packageType: 'sdk'
version: '3.1.101'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
displayName: 'Restore Library Dependencies'
inputs:
restoreSolution: '$(solution)'
- task: DotNetCoreCLI@2
displayName: 'Build Library'
inputs:
command: 'build'
projects: './src/AspNetCore.Identity.MongoDbCore.csproj'
arguments: '--configuration $(buildConfiguration)'
# - task: DotNetCoreCLI@2
# displayName: 'Test Library'
# inputs:
# command: 'test'
# projects: './test/AspNetCore.Identity.MongoDbCore.IntegrationTests/AspNetCore.Identity.MongoDbCore.IntegrationTests.csproj'
# arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Package Library (nuget)'
inputs:
command: 'custom'
projects: './src/AspNetCore.Identity.MongoDbCore.csproj'
custom: 'pack'
arguments: '--no-build -p:NuspecFile=AspNetCore.Identity.MongoDbCore.nuspec -o $(build.artifactStagingDirectory)/Nuget'
verbosityPack: 'Detailed'
- task: NuGetCommand@2
displayName: 'Publish Library'
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '72ef5435-c019-4338-8d35-7c3caec78f2a'
verbosityPush: 'Normal'