-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
77 lines (61 loc) · 2.41 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
environment:
global:
DROPBOX_TOKEN:
secure: UO64ZwJpnDQe5c7xArS14YWBFiAHsvvnt+DZ4PjLqb10wuI4k4OMGyso5W0/EW8da/BaD52DdYzB5NBWrFn3z7F2HrTZWHe/DTfa17ReebI=
matrix:
- PYTHON: "C:\\Python27"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
- PYTHON: "C:\\Python33"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
- PYTHON: "C:\\Python34"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
- PYTHON: "C:\\Python35"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 14"
# x64 builds
- PYTHON: "C:\\Python27-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 10 Win64"
- PYTHON: "C:\\Python33-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 10 Win64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python34-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 10 Win64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python35-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 14 Win64"
init:
- "ECHO %PYTHON% %PYTHON_ARCH% %MSVC_VERSION%"
- "%PYTHON%\\python.exe --version"
install:
- set
# python requirements needed to create distribution
- "%PYTHON%\\python.exe -m pip install wheel"
# try to fix cython install, see:
# * https://matthew-brett.github.io/pydagogue/python_msvc.html
# * https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
- "%PYTHON%\\python.exe -m pip install cython"
# get latest version of all submodules (gorilla audio)
- "git submodule update --init --recursive"
build: off
build_script:
# build gorilla audio that will be later statically linked
- "cmake -G \"%MSVC_VERSION%\" gorilla-audio/build -DCMAKE_TOOLCHAIN_FILE=ci/appveyor.%PYTHON_ARCH%.toolchain.cmake -DENABLE_OPENAL:STRING=0 -DENABLE_XAUDIO2:STRING=1 -DENABLE_DIRECTSOUND:STRING=0 -DDIRECTXSDK_PATH=\"%DXSDK_DIR%\""
- "cmake --build . --config Release"
# build our sdist and wheel distribution
- "ci\\appveyor_build.cmd %PYTHON%/python.exe -m pip wheel . -w dist"
on_success:
# note: we do not care about python version for upload script
- if [%APPVEYOR_REPO_BRANCH%]==[master] (
python.exe -m pip install dropbox &&
python.exe ci/dropbox_upload.py)
artifacts:
- path: dist\*
- path: gorilla-audio\bin\**\*