diff --git a/appveyor.yml b/appveyor.yml index 76a695f..e6712ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,76 +4,36 @@ 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\\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 +49,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" 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..d6b5f09 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -4,17 +4,7 @@ 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('.', '') }}\\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 +21,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"
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: