diff options
author | Michal Nowikowski <godfryd@gmail.com> | 2014-09-22 05:55:23 +0200 |
---|---|---|
committer | Michal Nowikowski <godfryd@gmail.com> | 2014-09-22 05:55:23 +0200 |
commit | 5221292de59d091ea396f8d20b62a98f92c0ae1f (patch) | |
tree | 111b94835658666937549068b7d74c72bb3f5b07 /appveyor | |
parent | 8df20c7a059f8641509e3db4afe6c66ff7e06070 (diff) | |
download | pylint-git-5221292de59d091ea396f8d20b62a98f92c0ae1f.tar.gz |
Added support for AppVeroy for CI on Windows
--HG--
branch : win-ci-5
Diffstat (limited to 'appveyor')
-rw-r--r-- | appveyor/install.ps1 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/appveyor/install.ps1 b/appveyor/install.ps1 new file mode 100644 index 000000000..e13c3880f --- /dev/null +++ b/appveyor/install.ps1 @@ -0,0 +1,27 @@ +# Sample script to install pip under Windows +# Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner +# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ + +$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py" +$GET_PIP_PATH = "C:\get-pip.py" + + +function InstallPip ($python_home) { + $pip_path = $python_home + "\Scripts\pip.exe" + $python_path = $python_home + "\python.exe" + if (-not(Test-Path $pip_path)) { + Write-Host "Installing pip..." + $webclient = New-Object System.Net.WebClient + $webclient.DownloadFile($GET_PIP_URL, $GET_PIP_PATH) + Write-Host "Executing:" $python_path $GET_PIP_PATH + Start-Process -FilePath "$python_path" -ArgumentList "$GET_PIP_PATH" -Wait -Passthru + } else { + Write-Host "pip already installed." + } +} + +function main () { + InstallPip $env:PYTHON +} + +main |