From dc2df816dab7694be4b26cb68d5ef841015471a6 Mon Sep 17 00:00:00 2001 From: Ben Ramey Date: Sat, 2 Nov 2019 22:28:44 +0000 Subject: [PATCH 1/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..6d41783 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,34 @@ +# ASP.NET +# Build and test ASP.NET projects. +# Add steps that publish symbols, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 + +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: VSBuild@1 + inputs: + solution: '$(solution)' + msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From 161efaaa652898d64f46e63a925122701d29c4d3 Mon Sep 17 00:00:00 2001 From: Ben Ramey Date: Sat, 2 Nov 2019 22:35:00 +0000 Subject: [PATCH 2/2] Use paket instead of nuget --- azure-pipelines.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6d41783..520178a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,11 +15,10 @@ variables: buildConfiguration: 'Release' steps: -- task: NuGetToolInstaller@1 - -- task: NuGetCommand@2 +- task: PaketRestore@0 inputs: - restoreSolution: '$(solution)' + PaketPath: '.paket' + PaketGroupName: 'LunchRunWeb' - task: VSBuild@1 inputs: