Add togglable RDP support to AppVeyor
@@ -4,6 +4,12 @@ environment:
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python35-x64"
+init:
+- ps: >-
+ if($env:APPVEYOR_RDP_DEBUG -eq 'True') {
+ iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
+ }
+
install:
# symlink python from a directory with a space
- "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
@@ -23,6 +29,11 @@ test_script:
- tox
on_finish:
+- ps: >-
+ if($env:APPVEYOR_RDP_DEBUG -eq 'True') {
+ $blockRdp = $true
+ iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
+ }
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.test-results\pytest\results.xml))
