2015-11-17 00:19:47 +00:00
|
|
|
# Modified from https://github.com/ogrisel/python-appveyor-demo
|
|
|
|
|
|
|
|
environment:
|
2015-12-13 15:36:41 +00:00
|
|
|
global:
|
|
|
|
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
|
|
|
|
# /E:ON and /V:ON options are not enabled in the batch script intepreter
|
|
|
|
# See: http://stackoverflow.com/a/13751649/163740
|
|
|
|
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
|
|
|
|
|
2015-11-17 00:19:47 +00:00
|
|
|
matrix:
|
|
|
|
- PYTHON: "C:\\Python33"
|
2015-12-22 06:25:41 +00:00
|
|
|
PY_PYTHON: 3.3-32
|
|
|
|
PY_PYTHON3: 3.3-32
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
- PYTHON: "C:\\Python33-x64"
|
2015-12-22 06:25:41 +00:00
|
|
|
PY_PYTHON: 3.3
|
|
|
|
PY_PYTHON3: 3.3
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
- PYTHON: "C:\\Python34"
|
2015-12-22 06:25:41 +00:00
|
|
|
PY_PYTHON: 3.4-32
|
|
|
|
PY_PYTHON3: 3.4-32
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
- PYTHON: "C:\\Python34-x64"
|
2015-12-22 06:25:41 +00:00
|
|
|
PY_PYTHON: 3.4
|
|
|
|
PY_PYTHON3: 3.4
|
2015-11-17 00:19:47 +00:00
|
|
|
|
2015-12-23 14:49:06 +00:00
|
|
|
# Python 3.5-32 won't run through the C:\Windows\py.exe launcher on
|
|
|
|
# AppVeyor for some reason. See:
|
|
|
|
# http://help.appveyor.com/discussions/problems/3891-py-35-32-hellopy-fails-with-error-code-103
|
|
|
|
# - PYTHON: "C:\\Python35"
|
|
|
|
# - PY_PYTHON: 3.5-32
|
|
|
|
# - PY_PYTHON3: 3.5-32
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
- PYTHON: "C:\\Python35-x64"
|
2015-12-22 06:25:41 +00:00
|
|
|
PY_PYTHON: 3.5
|
|
|
|
PY_PYTHON3: 3.5
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
# Prepend newly installed Python to the PATH of this build (this cannot be
|
|
|
|
# done from inside the powershell script as it would require to restart
|
|
|
|
# the parent CMD process).
|
|
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
|
|
|
|
|
|
# Check that we have the expected version and architecture for Python
|
|
|
|
- "python --version"
|
|
|
|
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
2015-12-23 14:49:06 +00:00
|
|
|
- "py -c \"import sys; print(sys.version)\""
|
|
|
|
- "py -3 -c \"import sys; print(sys.version)\""
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
# Upgrade to the latest version of pip to avoid it displaying warnings
|
|
|
|
# about it being out of date.
|
|
|
|
- "pip install --disable-pip-version-check --user --upgrade pip"
|
|
|
|
|
|
|
|
# Install the build dependencies of the project. If some dependencies contain
|
|
|
|
# compiled extensions and are not provided as pre-built wheel packages,
|
|
|
|
# pip will build them from source using the MSVC compiler matching the
|
|
|
|
# target Python version and architecture
|
|
|
|
- "%CMD_IN_ENV% pip install -r requirements-dev.txt"
|
|
|
|
|
2015-12-22 06:25:41 +00:00
|
|
|
# The AppVeyor ftype for Python files is hardcoded to the Python 2
|
|
|
|
# interpreter, instead of the py.exe launcher. This works around that problem
|
|
|
|
# until a fix is in:
|
|
|
|
# http://help.appveyor.com/discussions/problems/2569-latest-appveyor-build-platform-update-introduced-a-python-problem#comment_38756340
|
|
|
|
- ps: cmd /c ftype Python.File="C:\Windows\py.exe" "%1" %*
|
2015-12-21 19:22:41 +00:00
|
|
|
|
2015-12-22 06:25:41 +00:00
|
|
|
build: off
|
2015-11-17 00:19:47 +00:00
|
|
|
|
|
|
|
test_script:
|
2015-12-21 19:49:30 +00:00
|
|
|
- "%CMD_IN_ENV% python test.py -v"
|