From c90c1e67aed6f290229a5b75ddedb0a3f47ca1e3 Mon Sep 17 00:00:00 2001 From: Brendan Kowitz Date: Fri, 31 Aug 2018 16:21:38 -0700 Subject: [PATCH] Set up CI with VSTS Pipelines (#1) --- vsts-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vsts-ci.yml diff --git a/vsts-ci.yml b/vsts-ci.yml new file mode 100644 index 0000000000..0c1fdf4961 --- /dev/null +++ b/vsts-ci.yml @@ -0,0 +1,37 @@ +# ASP.NET Core (.NET Framework) +# Build and test ASP.NET Core web applications targeting the full .NET Framework. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/vsts/pipelines/languages/dotnet-core + +phases: +- phase: Windows + queue: + demands: agent.os -equals Windows_NT + + pool: + vmImage: 'VS2017-Win2016' + + variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + + steps: + - task: NuGetToolInstaller@0 + + - 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:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + + - task: DotNetCoreCLI@2 + inputs: + command: test + projects: **/*UnitTests/*.csproj + arguments: '--configuration $(BuildConfiguration)'