-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding AppVeyor integration for testing and building wheels on Windows
- Loading branch information
Tal Einat
committed
Jul 6, 2017
1 parent
54ba4bc
commit b2b5531
Showing
3 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters