From 6bb122f49700c86df9a6fcda96d6c840ce8d7680 Mon Sep 17 00:00:00 2001 From: d-barker <31757611+d-barker@users.noreply.github.com> Date: Fri, 24 Jan 2020 14:13:46 +0800 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..3e204d8 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,50 @@ +# 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: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: DotNetCoreCLI@2 + inputs: + command: 'build' + projects: './src/AspNetCore.Identity.MongoDbCore.csproj' + arguments: '--configuiration $(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: DotNetCoreCLI@2 + inputs: + command: 'pack' + packagesToPack: './src/AspNetCore.Identity.MongoDbCore.csproj' + versioningScheme: 'off' + arguments: '-p:NuspecFile=AspnetCore.Identity.MongoDbCore.nuspec' + modifyOutputPath: true + packDirectory: $(build.artifactStagingDirectory)/Nuget + +- task: NuGetCommand@2 + inputs: + command: 'push' + packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' + nuGetFeedType: 'internal' + publishVstsFeed: '72ef5435-c019-4338-8d35-7c3caec78f2a' + verbosityPush: 'Normal' \ No newline at end of file