blob: d414425244f9f7292e984d174aabb01f48ac630a [file] [log] [blame]
Cosimo Lupo06300902015-08-11 12:15:03 +01001environment:
2
3 global:
4 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
5 # /E:ON and /V:ON options are not enabled in the batch script intepreter
6 # See: http://stackoverflow.com/a/13751649/163740
7 WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd"
8
9 matrix:
10 - PYTHON: "C:\\Python27"
11 PYTHON_VERSION: "2.7.x"
12 PYTHON_ARCH: "32"
13
14 - PYTHON: "C:\\Python34"
15 PYTHON_VERSION: "3.4.x"
16 PYTHON_ARCH: "32"
17
Cosimo Lupo33331762015-10-07 09:18:01 +010018 - PYTHON: "C:\\Python35"
19 PYTHON_VERSION: "3.5.0"
20 PYTHON_ARCH: "32"
21
Cosimo Lupo06300902015-08-11 12:15:03 +010022 - PYTHON: "C:\\Python27-x64"
23 PYTHON_VERSION: "2.7.x"
24 PYTHON_ARCH: "64"
Cosimo Lupo06300902015-08-11 12:15:03 +010025
26 - PYTHON: "C:\\Python34-x64"
27 PYTHON_VERSION: "3.4.x"
28 PYTHON_ARCH: "64"
Cosimo Lupo06300902015-08-11 12:15:03 +010029
Cosimo Lupo33331762015-10-07 09:18:01 +010030 - PYTHON: "C:\\Python35-x64"
31 PYTHON_VERSION: "3.5.0"
32 PYTHON_ARCH: "64"
33
Cosimo Lupo06300902015-08-11 12:15:03 +010034init:
35 - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
36
37install:
38 # install Python and pip when not already installed
39 - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
40
41 # prepend newly installed Python to the PATH
42 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
43
44 # check that we have the expected version and architecture for Python
45 - "python --version"
46 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
47
48 # upgrade pip to avoid out-of-date warnings
49 - "pip install --disable-pip-version-check --user --upgrade pip"
50
51 # install wheel to build compiled packages
52 - "pip install --upgrade wheel"
53
54build: false
55
56test_script:
57 - "%WITH_COMPILER% python setup.py build_ext test"
58
59after_test:
60 # if tests are successful, create binary packages for the project
61 - "%WITH_COMPILER% pip wheel -w dist ."
62
63artifacts:
64 # archive the generated packages in the ci.appveyor.com build report
65 - path: dist\*
66
67# For info, see: http://www.appveyor.com/docs/deployment/github
68
Zoltan Szabadka8ce34942015-09-29 14:36:12 +020069deploy:
70 - provider: GitHub
71 auth_token:
72 secure: dfL56DgbwuGJNNE5GzKi/pAgBQnJ37Du+AnCtnsTnIYxpis8ah3fPmA/G+bn4NJ3
73 artifact:
74 draft: false
75 prerelease: false
76 on:
77 appveyor_repo_tag: true