1environment: 2 matrix: 3 - JOB: "2.7 32-bit" 4 PYTHON_HOME: "C:\\Python27" 5 TOXENV: "py27-cov" 6 TOXPYTHON: "C:\\Python27\\python.exe" 7 8 - JOB: "3.6 32-bit" 9 PYTHON_HOME: "C:\\Python36" 10 TOXENV: "py36-cov" 11 TOXPYTHON: "C:\\Python36\\python.exe" 12 13 - JOB: "2.7 64-bit" 14 PYTHON_HOME: "C:\\Python27-x64" 15 TOXENV: "py27-cov" 16 TOXPYTHON: "C:\\Python27-x64\\python.exe" 17 18 - JOB: "3.6 64-bit" 19 PYTHON_HOME: "C:\\Python35-x64" 20 TOXENV: "py36-cov" 21 TOXPYTHON: "C:\\Python36-x64\\python.exe" 22 23# Do not build feature branches with open Pull Requests after the initial 24# opening of a PR. 25skip_branch_with_pr: true 26 27install: 28 # If there is a newer build queued for the same PR, cancel this one. 29 # The AppVeyor 'rollout builds' option is supposed to serve the same 30 # purpose but it is problematic because it tends to cancel builds pushed 31 # directly to master instead of just PR builds (or the converse). 32 # credits: JuliaLang developers. 33 - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` 34 https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` 35 Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` 36 throw "There are newer queued builds for this pull request, failing early." } 37 38 # Prepend Python to the PATH of this build 39 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%" 40 41 # check that we have the expected version and architecture for Python 42 - "python --version" 43 - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" 44 45 # upgrade pip to avoid out-of-date warnings 46 - "python -m pip install --disable-pip-version-check --user --upgrade pip" 47 - "python -m pip --version" 48 49 # install the dependencies to run the tests 50 - "python -m pip install -r dev-requirements.txt" 51 52 53build: false 54 55test_script: 56 - "tox" 57