From 9d46261b5a01f8e863ae353daf8913e1f1c452f3 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Mon, 12 Dec 2016 10:28:18 -0800 Subject: [PATCH] Updated appveyor.yml to produce artifacts. --- appveyor.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ac85f6d..11866ca 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,19 +1,19 @@ version: 1.0.{build} clone_folder: '%iis_admin_solution_dir%' init: -- ps: >- +- ps: > setx iis_admin_solution_dir $env:iis_admin_solution_dir /m; npm install -g bower; environment: iis_admin_solution_dir: c:\src\repos\IIS.Administration - publish_out_dir: c:\publish_out\IIS.Administration + publish_out_dir: '%iis_admin_solution_dir%\bin\publish_out' services: iis before_build: - ps: dotnet restore build: verbosity: minimal after_build: -- ps: >- +- ps: > & "$env:iis_admin_solution_dir\scripts\publish\publish.ps1" -OutputPath $env:publish_out_dir -SkipRestore -SkipPrompt; Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match "IIS-" -and $_.State -eq [Microsoft.Dism.Commands.FeatureState]::Disabled} | % {Enable-WindowsOptionalFeature -Online -FeatureName $_.FeatureName}; & "$env:publish_out_dir\setup\setup.ps1" Install -Verbose -Port 44326; @@ -22,3 +22,7 @@ after_build: Restart-Service "Microsoft IIS Administration"; test_script: - ps: dotnet test "$env:iis_admin_solution_dir\test\Microsoft.IIS.Administration.Tests" +artifacts: +- path: bin\publish_out + name: IIS Administration + type: zip