Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
+6
-8
@@ -17,6 +17,7 @@ variables:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
|
displayName: 'Install .net core 3.1'
|
||||||
inputs:
|
inputs:
|
||||||
packageType: 'sdk'
|
packageType: 'sdk'
|
||||||
version: '3.1.101'
|
version: '3.1.101'
|
||||||
@@ -24,22 +25,26 @@ steps:
|
|||||||
- task: NuGetToolInstaller@1
|
- task: NuGetToolInstaller@1
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'Restore Library Dependencies'
|
||||||
inputs:
|
inputs:
|
||||||
restoreSolution: '$(solution)'
|
restoreSolution: '$(solution)'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Build Library'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'build'
|
command: 'build'
|
||||||
projects: './src/AspNetCore.Identity.MongoDbCore.csproj'
|
projects: './src/AspNetCore.Identity.MongoDbCore.csproj'
|
||||||
arguments: '--configuration $(buildConfiguration)'
|
arguments: '--configuration $(buildConfiguration)'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Test Library'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'test'
|
command: 'test'
|
||||||
projects: './test/AspNetCore.Identity.MongoDbCore.IntegrationTests/AspNetCore.Identity.MongoDbCore.IntegrationTests.csproj'
|
projects: './test/AspNetCore.Identity.MongoDbCore.IntegrationTests/AspNetCore.Identity.MongoDbCore.IntegrationTests.csproj'
|
||||||
arguments: '--configuration $(buildConfiguration)'
|
arguments: '--configuration $(buildConfiguration)'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'Package Library'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'pack'
|
command: 'pack'
|
||||||
packagesToPack: './src/AspnetCore.Identity.MongoDbCore.csproj'
|
packagesToPack: './src/AspnetCore.Identity.MongoDbCore.csproj'
|
||||||
@@ -49,15 +54,8 @@ steps:
|
|||||||
nobuild: true
|
nobuild: true
|
||||||
verbosityPack: 'Minimal'
|
verbosityPack: 'Minimal'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
|
||||||
inputs:
|
|
||||||
command: 'pack'
|
|
||||||
packagesToPack: '**/*.csproj'
|
|
||||||
nobuild: true
|
|
||||||
versioningScheme: 'off'
|
|
||||||
verbosityPack: 'Minimal'
|
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'Publish Library'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'push'
|
command: 'push'
|
||||||
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
||||||
|
|||||||
Reference in New Issue
Block a user