Skip to content

Commit

Permalink
Set up CI with VSTS Pipelines (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankowitz authored Aug 31, 2018
1 parent 9ccfcde commit c90c1e6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions vsts-ci.yml
Original file line number Diff line number Diff line change
@@ -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)'

0 comments on commit c90c1e6

Please sign in to comment.