Skip to content

Commit c0db143

Browse files
committed
Merge pull request #777 from bubenkoff/appveyor-integration
appveyor integration
2 parents af439e7 + 534dbac commit c0db143

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

appveyor.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
environment:
2+
global:
3+
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
4+
# /E:ON and /V:ON options are not enabled in the batch script intepreter
5+
# See: http://stackoverflow.com/a/13751649/163740
6+
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
7+
8+
matrix:
9+
10+
# Pre-installed Python versions, which Appveyor may upgrade to
11+
# a later point release.
12+
13+
- PYTHON: "C:\\Python27"
14+
PYTHON_VERSION: "2.7.x" # currently 2.7.9
15+
PYTHON_ARCH: "32"
16+
TESTENV: "py27"
17+
18+
- PYTHON: "C:\\Python27-x64"
19+
PYTHON_VERSION: "2.7.x" # currently 2.7.9
20+
PYTHON_ARCH: "64"
21+
TESTENV: "py27"
22+
23+
- PYTHON: "C:\\Python33"
24+
PYTHON_VERSION: "3.3.x" # currently 3.3.5
25+
PYTHON_ARCH: "32"
26+
TESTENV: "py33"
27+
28+
- PYTHON: "C:\\Python33-x64"
29+
PYTHON_VERSION: "3.3.x" # currently 3.3.5
30+
PYTHON_ARCH: "64"
31+
TESTENV: "py33"
32+
33+
- PYTHON: "C:\\Python34"
34+
PYTHON_VERSION: "3.4.x" # currently 3.4.3
35+
PYTHON_ARCH: "32"
36+
TESTENV: "py34"
37+
38+
- PYTHON: "C:\\Python34-x64"
39+
PYTHON_VERSION: "3.4.x" # currently 3.4.3
40+
PYTHON_ARCH: "64"
41+
TESTENV: "py34"
42+
43+
# Also test a Python version not pre-installed
44+
# See: https://github.com/ogrisel/python-appveyor-demo/issues/10
45+
46+
- PYTHON: "C:\\Python266"
47+
PYTHON_VERSION: "2.6.6"
48+
PYTHON_ARCH: "32"
49+
TESTENV: "py26"
50+
51+
52+
install:
53+
- ECHO "Filesystem root:"
54+
- ps: "ls \"C:/\""
55+
56+
- ECHO "Installed SDKs:"
57+
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
58+
59+
# Install Python (from the official .msi of http://python.org) and pip when
60+
# not already installed.
61+
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
62+
63+
# Prepend newly installed Python to the PATH of this build (this cannot be
64+
# done from inside the powershell script as it would require to restart
65+
# the parent CMD process).
66+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
67+
68+
# Check that we have the expected version and architecture for Python
69+
- "python --version"
70+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
71+
72+
# Install the build dependencies of the project. If some dependencies contain
73+
# compiled extensions and are not provided as pre-built wheel packages,
74+
# pip will build them from source using the MSVC compiler matching the
75+
# target Python version and architecture
76+
- "%CMD_IN_ENV% pip install tox"
77+
78+
build: false # Not a C# project, build stuff at the test step instead.
79+
80+
test_script:
81+
# Build the compiled extension and run the project tests
82+
- "%CMD_IN_ENV% tox -e %TESTENV%"

0 commit comments

Comments
 (0)