5 - PYTHON: "C:\\Python27"
6 PYTHON_VERSION: "2.7.x"
9 - PYTHON: "C:\\Python27-x64"
10 PYTHON_VERSION: "2.7.x"
13 - PYTHON: "C:\\Python33"
14 PYTHON_VERSION: "3.3.x"
17 - PYTHON: "C:\\Python33-x64"
18 PYTHON_VERSION: "3.3.x"
21 - PYTHON: "C:\\Python34"
22 PYTHON_VERSION: "3.4.x"
25 - PYTHON: "C:\\Python34-x64"
26 PYTHON_VERSION: "3.4.x"
29 - PYTHON: "C:\\Python35"
30 PYTHON_VERSION: "3.5.x"
33 - PYTHON: "C:\\Python35-x64"
34 PYTHON_VERSION: "3.5.x"
37 - PYTHON: "C:\\Python36"
38 PYTHON_VERSION: "3.6.x"
41 - PYTHON: "C:\\Python36-x64"
42 PYTHON_VERSION: "3.6.x"
46 # If there is a newer build queued for the same PR, cancel this one.
47 # The AppVeyor 'rollout builds' option is supposed to serve the same
48 # purpose but it is problematic because it tends to cancel builds pushed
49 # directly to master instead of just PR builds (or the converse).
50 # credits: JuliaLang developers.
51 - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
52 https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
53 Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
54 throw "There are newer queued builds for this pull request, failing early." }
55 - ECHO "Filesystem root:"
58 - ECHO "Installed SDKs:"
59 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
61 # Install Python (from the official .msi of http://python.org) and pip when
62 # not already installed.
63 - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
65 # Prepend newly installed Python to the PATH of this build (this cannot be
66 # done from inside the powershell script as it would require to restart
67 # the parent CMD process).
68 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
70 # Check that we have the expected version and architecture for Python
72 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
74 # Install setuptools/wheel so that we can e.g. use bdist_wheel
75 - "pip install setuptools wheel"
77 - "python setup.py develop"
80 # Build the compiled extension
81 - "python setup.py build"
84 - "python setup.py test"
87 - "python setup.py bdist_wheel"
88 - "python setup.py bdist_wininst"
89 - "python setup.py bdist_msi"