Files
AspNetCore.Identity.MongoDb…/azure-pipelines.yml
T
2020-01-24 16:03:37 +08:00

66 lines
1.7 KiB
YAML

# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.1.101'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: './src/AspNetCore.Identity.MongoDbCore.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: './test/AspNetCore.Identity.MongoDbCore.IntegrationTests/AspNetCore.Identity.MongoDbCore.IntegrationTests.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: './src/AspnetCore.Identity.MongoDbCore.csproj'
versioningScheme: 'off'
arguments: '-p:NuspecFile=./src/AspnetCore.Identity.MongoDbCore.nuspec'
packDirectory: $(build.artifactStagingDirectory)/Nuget
nobuild: true
verbosityPack: 'Minimal'
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: '**/*.csproj'
nobuild: true
versioningScheme: 'off'
verbosityPack: 'Minimal'
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '72ef5435-c019-4338-8d35-7c3caec78f2a'
verbosityPush: 'Normal'