From 3663ddedf4ca8fed3b3e57bfcb561b1731d4300b Mon Sep 17 00:00:00 2001 From: Indhu Sivaramakrishnan Date: Thu, 14 Sep 2017 15:06:07 -0700 Subject: [PATCH] Add Appveyor.yml --- appveyor.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..e6ab444 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,49 @@ +############################################################################################### +# # +# This file is used to control the AppVeyor build for the PSDesiredStateConfiguration Project # +# # +# # +############################################################################################### + +version: 0.4.0.{build} + +branches: + only: + - master + +# Having a build cache is a workaround to prevent DSC builds from failing when Appveyor has issues with downloading .NETCore or Nuget packages. +# The Nuget package cache here will be updated whenever a .csproj file changes (from the last build) as that's what may trigger a change in Nuget package dependency +# More documentation on build cache - https://www.appveyor.com/docs/build-cache/ +cache: + - '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> **\cs.proj' + +init: + - ps: | + # Uncomment to enable RDP during init + # We cannot use any DscEngineering function here as the repository is cloned after init + + #$blockRdp = $true + #iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) + +nuget: + project_feed: true + +# Only build the standard image +environment: + matrix: + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 # This is the standard AppVeyor image + +install: + - ps: | + git config --global url.git@github.com:.insteadOf https://github.com/ + Import-Module $env:APPVEYOR_BUILD_FOLDER\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psd1 + +on_finish: + - ps: | + Write-Output "Hello" + +notifications: + - provider: Email + to: + - insivara@microsoft.com + on_build_success: true