Added appveyor
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parent 2df17b6 · Browse files · 3 files·+98 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+98 added−0 removed
- other:+98 added−0 removed
Provenance
- Commit
e0dedf0- Tree
a2bced0- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
2df17b6
3 files changed+98 added−0 removed
added:.ci/appveyor.yml+50 added
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950# From https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
environment: 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 .\\.ci\\run_with_env.cmd"
matrix: - PYTHON: "C:\\Python27" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python33" PYTHON_VERSION: "3.3.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python33-x64" PYTHON_VERSION: "3.3.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python34-x64" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "64"
branches: only: - master
install: - "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)\"" # Build data files - "pip install . pytest"
build: false # Not a C# project, build stuff at the test step instead.
test_script: - "%CMD_IN_ENV% python -m pytest tests"added:.ci/run_with_env.cmd+47 added
1+:: To build extensions for 64 bit Python 3, we need to configure environment2+:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:3+:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1)4+::5+:: To build extensions for 64 bit Python 2, we need to configure environment6+:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of:7+:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0)8+::9+:: 32 bit builds do not require specific environment configurations.10+::11+:: Note: this script needs to be run with the /E:ON and /V:ON flags for the12+:: cmd interpreter, at least for (SDK v7.0)13+::14+:: More details at:15+:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows16+:: http://stackoverflow.com/a/13751649/16374017+::18+:: Author: Olivier Grisel19+:: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/20+@ECHO OFF21+22+SET COMMAND_TO_RUN=%*23+SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows24+25+SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%"26+IF %MAJOR_PYTHON_VERSION% == "2" (27+ SET WINDOWS_SDK_VERSION="v7.0"28+) ELSE IF %MAJOR_PYTHON_VERSION% == "3" (29+ SET WINDOWS_SDK_VERSION="v7.1"30+) ELSE (31+ ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%"32+ EXIT 133+)34+35+IF "%PYTHON_ARCH%"=="64" (36+ ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture37+ SET DISTUTILS_USE_SDK=138+ SET MSSdk=139+ "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION%40+ "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release41+ ECHO Executing: %COMMAND_TO_RUN%42+ call %COMMAND_TO_RUN% || EXIT 143+) ELSE (44+ ECHO Using default MSVC build environment for 32 bit architecture45+ ECHO Executing: %COMMAND_TO_RUN%46+ call %COMMAND_TO_RUN% || EXIT 147+)modified:.travis.yml+1 added
2 unmodified lines3456789101117 unmodified lines2 unmodified lines - "2.6" - "2.7" - "3.3" - "3.4" - "3.5" - "pypy"
env: - REQUIREMENTS=colorama17 unmodified lines