From 30fdb2cbac3a62ea694878b7b369b268a813fa09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 3 Jul 2015 02:41:32 +0300 Subject: [PATCH 1/3] Enable rdp. --- ci/enable-rdp.ps1 | 31 +++++++++++++++++++++++++++++++ ci/templates/appveyor.yml | 7 +------ 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 ci/enable-rdp.ps1 diff --git a/ci/enable-rdp.ps1 b/ci/enable-rdp.ps1 new file mode 100644 index 0000000..62774d7 --- /dev/null +++ b/ci/enable-rdp.ps1 @@ -0,0 +1,31 @@ +# get current IP +$ip = (Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -like '*ethernet*'}).IPAddress + +# this is how to get IP of Azure VM +#$wc = (New-Object Net.WebClient) +#$wc.Headers.Add("User-Agent", "AppVeyor") +#$vmip = $wc.DownloadString('http://canhazip.com/') + +# generate password +$randomObj = New-Object System.Random +$newPassword = "" +1..12 | ForEach { $newPassword = $newPassword + [char]$randomObj.next(33,126) } + +# change password +$objUser = [ADSI]("WinNT://$($env:computername)/appveyor") +$objUser.SetPassword($newPassword) + +# allow RDP on firewall +Enable-NetFirewallRule -DisplayName 'Remote Desktop - User Mode (TCP-in)' + +# place "lock" file +$path = "$($env:USERPROFILE)\Desktop\Delete me to continue build.txt" +Set-Content -Path $path -Value '' + +Write-Warning "To connect this build worker via RDP:" +Write-Warning "Server: $ip" +Write-Warning "Username: appveyor" +Write-Warning "Password: $newPassword" +Write-Warning "There is 'Delete me to continue build.txt' file has been created on Desktop - delete it to continue the build." + +while($true) { if (-not (Test-Path $path)) { break; } else { Start-Sleep -Seconds 1 } } diff --git a/ci/templates/appveyor.yml b/ci/templates/appveyor.yml index 5531032..39e649d 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -9,12 +9,6 @@ environment: PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" {% for env, config in tox_environments|dictsort %}{% if env.startswith('2.7') or env.startswith('3.4') or env.startswith('3.3') %} - - TOXENV: "{{ env }}" - TOXPYTHON: "C:\\Python{{ env[:3].replace('.', '') }}\\python.exe" - WINDOWS_SDK_VERSION: "v7.{{ '1' if env[0] == '3' else '0' }}" - PYTHON_HOME: "C:\\Python{{ env[:3].replace('.', '') }}" - PYTHON_VERSION: "{{ env[:3] }}" - PYTHON_ARCH: "32" - TOXENV: "{{ env }}" TOXPYTHON: "C:\\Python{{ env[:3].replace('.', '') }}-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.{{ '1' if env[0] == '3' else '0' }}" @@ -31,6 +25,7 @@ test_script: - "%PYTHON_HOME%\\Scripts\\tox --version" - "%PYTHON_HOME%\\Scripts\\virtualenv --version" - "%PYTHON_HOME%\\Scripts\\pip --version" + - "powershell ci\\enable-rdp.ps1" - "%WITH_COMPILER% %PYTHON_HOME%\\Scripts\\tox" after_test: - "IF \"%TOXENV:~-8,8%\" == \"-nocover\" %WITH_COMPILER% %TOXPYTHON% setup.py bdist_wheel" From 852ac7aa055ffc3f5282fd9097afe9e21f2968a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 3 Jul 2015 02:56:15 +0300 Subject: [PATCH 2/3] Doh --- appveyor.yml | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 76a695f..dcbd6c8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,72 +8,36 @@ environment: PYTHON_HOME: "C:\\Python27" PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" - - TOXENV: "2.7" - TOXPYTHON: "C:\\Python27\\python.exe" - WINDOWS_SDK_VERSION: "v7.0" - PYTHON_HOME: "C:\\Python27" - PYTHON_VERSION: "2.7" - PYTHON_ARCH: "32" - TOXENV: "2.7" TOXPYTHON: "C:\\Python27-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.0" PYTHON_HOME: "C:\\Python27-x64" PYTHON_VERSION: "2.7" PYTHON_ARCH: "64" - - TOXENV: "2.7-nocover" - TOXPYTHON: "C:\\Python27\\python.exe" - WINDOWS_SDK_VERSION: "v7.0" - PYTHON_HOME: "C:\\Python27" - PYTHON_VERSION: "2.7" - PYTHON_ARCH: "32" - TOXENV: "2.7-nocover" TOXPYTHON: "C:\\Python27-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.0" PYTHON_HOME: "C:\\Python27-x64" PYTHON_VERSION: "2.7" PYTHON_ARCH: "64" - - TOXENV: "3.3" - TOXPYTHON: "C:\\Python33\\python.exe" - WINDOWS_SDK_VERSION: "v7.1" - PYTHON_HOME: "C:\\Python33" - PYTHON_VERSION: "3.3" - PYTHON_ARCH: "32" - TOXENV: "3.3" TOXPYTHON: "C:\\Python33-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.1" PYTHON_HOME: "C:\\Python33-x64" PYTHON_VERSION: "3.3" PYTHON_ARCH: "64" - - TOXENV: "3.3-nocover" - TOXPYTHON: "C:\\Python33\\python.exe" - WINDOWS_SDK_VERSION: "v7.1" - PYTHON_HOME: "C:\\Python33" - PYTHON_VERSION: "3.3" - PYTHON_ARCH: "32" - TOXENV: "3.3-nocover" TOXPYTHON: "C:\\Python33-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.1" PYTHON_HOME: "C:\\Python33-x64" PYTHON_VERSION: "3.3" PYTHON_ARCH: "64" - - TOXENV: "3.4" - TOXPYTHON: "C:\\Python34\\python.exe" - WINDOWS_SDK_VERSION: "v7.1" - PYTHON_HOME: "C:\\Python34" - PYTHON_VERSION: "3.4" - PYTHON_ARCH: "32" - TOXENV: "3.4" TOXPYTHON: "C:\\Python34-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.1" PYTHON_HOME: "C:\\Python34-x64" PYTHON_VERSION: "3.4" PYTHON_ARCH: "64" - - TOXENV: "3.4-nocover" - TOXPYTHON: "C:\\Python34\\python.exe" - WINDOWS_SDK_VERSION: "v7.1" - PYTHON_HOME: "C:\\Python34" - PYTHON_VERSION: "3.4" - PYTHON_ARCH: "32" - TOXENV: "3.4-nocover" TOXPYTHON: "C:\\Python34-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.1" @@ -89,6 +53,7 @@ test_script: - "%PYTHON_HOME%\\Scripts\\tox --version" - "%PYTHON_HOME%\\Scripts\\virtualenv --version" - "%PYTHON_HOME%\\Scripts\\pip --version" + - "powershell ci\\enable-rdp.ps1" - "%WITH_COMPILER% %PYTHON_HOME%\\Scripts\\tox" after_test: - "IF \"%TOXENV:~-8,8%\" == \"-nocover\" %WITH_COMPILER% %TOXPYTHON% setup.py bdist_wheel" From 21e1d4f478a1eaeda085e5ca659cc8e68f1772a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 3 Jul 2015 03:03:04 +0300 Subject: [PATCH 3/3] NO check --- appveyor.yml | 4 ---- ci/templates/appveyor.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index dcbd6c8..e6712ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,10 +4,6 @@ environment: global: WITH_COMPILER: "cmd /E:ON /V:ON /C .\\ci\\appveyor-with-compiler.cmd" matrix: - - TOXENV: check - PYTHON_HOME: "C:\\Python27" - PYTHON_VERSION: "2.7" - PYTHON_ARCH: "32" - TOXENV: "2.7" TOXPYTHON: "C:\\Python27-x64\\python.exe" WINDOWS_SDK_VERSION: "v7.0" diff --git a/ci/templates/appveyor.yml b/ci/templates/appveyor.yml index 39e649d..d6b5f09 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -4,10 +4,6 @@ environment: global: WITH_COMPILER: "cmd /E:ON /V:ON /C .\\ci\\appveyor-with-compiler.cmd" matrix: - - TOXENV: check - PYTHON_HOME: "C:\\Python27" - PYTHON_VERSION: "2.7" - PYTHON_ARCH: "32" {% for env, config in tox_environments|dictsort %}{% if env.startswith('2.7') or env.startswith('3.4') or env.startswith('3.3') %} - TOXENV: "{{ env }}" TOXPYTHON: "C:\\Python{{ env[:3].replace('.', '') }}-x64\\python.exe" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy