Skip to content

Commit

Permalink
use 'ps:' in appveyor to execute powershell
Browse files Browse the repository at this point in the history
This commit replaces 'cmd: powershell.exe ...'
statements in 'appveyor.yml' with 'ps: ...'.
  • Loading branch information
christian-monch authored and mih committed Sep 19, 2023
1 parent d414f01 commit d68b367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ for:
# cloning it
init:
# remove 260-char limit on path names
- cmd: powershell Set-Itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name LongPathsEnabled -value 1
- ps: Set-Itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name LongPathsEnabled -value 1
# enable developer mode
# this should enable mklink without admin privileges, but it doesn't seem to work
#- cmd: powershell tools\ci\appveyor_enable_windevmode.ps1
# enable RDP access (RDP password is in appveyor project config)
# this is relatively expensive (1-2min), but very convenient to jump into any build at any time
- cmd: powershell.exe iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Scratch space
- cmd: md C:\DLTMP
# and use that scratch space to get short paths in test repos
Expand Down Expand Up @@ -277,7 +277,7 @@ for:

on_finish:
# conditionally block the exit of a CI run for direct debugging
- cmd: powershell.exe while ((Test-Path "C:\Users\\appveyor\\Desktop\\BLOCK.txt")) { Start-Sleep 5 }
- ps: while ((Test-Path "C:\Users\\appveyor\\Desktop\\BLOCK.txt")) { Start-Sleep 5 }


#
Expand Down

0 comments on commit d68b367

Please sign in to comment.