diff --git a/appveyor.yml b/appveyor.yml index 400c196..c745716 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,11 @@ skip_tags: true image: Visual Studio 2017 # Install pester module and init the Appveyor support. + +# Enable RDP connection for debugging +init: + - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) + install: - ps: Import-Module .\tools\AppVeyor.psm1 - ps: Invoke-InstallDependencies -Verbose @@ -61,3 +66,7 @@ deploy: after_deploy: - ps: Invoke-AppVeyorPSGallery -OnBranch 'master' + +# Pause build until `lock` on desktop is deleted. +on_finish: + - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))