Skip to content

Commit

Permalink
adding AppVeyor integration for testing and building wheels on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tal Einat committed Jul 6, 2017
1 parent 54ba4bc commit b2b5531
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
57 changes: 57 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
environment:

matrix:

# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python

- PYTHON: "C:\\Python26"
TOX_ENV: "py26"
- PYTHON: "C:\\Python26-x64"
TOX_ENV: "py26"
- PYTHON: "C:\\Python27"
TOX_ENV: "py27"
- PYTHON: "C:\\Python27-x64"
TOX_ENV: "py27"
- PYTHON: "C:\\Python33"
TOX_ENV: "py33"
# - PYTHON: "C:\\Python33-x64"
# TOX_ENV: "py33"
# DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python34"
TOX_ENV: "py34"
# - PYTHON: "C:\\Python34-x64"
# TOX_ENV: "py34"
# DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python35"
TOX_ENV: "py35"
- PYTHON: "C:\\Python35-x64"
TOX_ENV: "py35"
- PYTHON: "C:\\Python36"
TOX_ENV: "py36"
- PYTHON: "C:\\Python36-x64"
TOX_ENV: "py36"

install:
# We need wheel installed to build wheels
- "%PYTHON%\\Scripts\\pip.exe install wheel"
- "%PYTHON%\\Scripts\\pip.exe install coveralls"
- "%PYTHON%\\Scripts\\pip.exe install \"virtualenv<14\""
- "%PYTHON%\\Scripts\\pip.exe install \"tox<3\""

build: off

test_script:
- "build.cmd %PYTHON%\\Scripts\\tox.exe -e %TOX_ENV%-without_coverage-appveyor -vv"

after_test:
- "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"

artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*

#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.
21 changes: 21 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
:: To build extensions for 64 bit Python 3, we need to configure environment
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 4
::
:: More details at:
:: https://github.com/cython/cython/wiki/CythonExtensionsOnWindows

IF "%DISTUTILS_USE_SDK%"=="1" (
ECHO Configuring environment to build with MSVC on a 64bit architecture
ECHO Using Windows SDK 7.1
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
SET MSSdk=1
REM Need the following to allow tox to see the SDK compiler
SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB
) ELSE (
ECHO Using default MSVC build environment
)

CALL %*
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{26,27,32,33,34,35,36}-{with,without}_coverage
envlist = py{26,27,32,33,34,35,36}-{with,without}_coverage-{,appveyor}

[testenv]
install_command =
Expand Down Expand Up @@ -45,3 +45,4 @@ basepython =
py34: python3.4
py35: python3.5
py36: python3.6
appveyor: {env:PYTHON:}\\python.exe

0 comments on commit b2b5531

Please sign in to comment.