forked from ap--/python-seabreeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
76 lines (64 loc) · 2.64 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
environment:
global:
SEABREEZE: "3.0.10.2"
SEABREEZE_PATH: "C:\\Program Files (x86)\\Ocean Optics\\SeaBreeze\\Library;C:\\Program Files\\Ocean Optics\\SeaBreeze\\Library"
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
- PYTHON: "C:\\Python27"
PYTHON_ARCH: "32"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wxp\\i386"
- PYTHON: "C:\\Python33"
PYTHON_ARCH: "32"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wxp\\i386"
- PYTHON: "C:\\Python34"
PYTHON_ARCH: "32"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wxp\\i386"
- PYTHON: "C:\\Python35"
PYTHON_ARCH: "32"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wxp\\i386"
- PYTHON: "C:\\Python27-x64"
PYTHON_ARCH: "64"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wlh\\amd64"
- PYTHON: "C:\\Python33-x64"
PYTHON_ARCH: "64"
DISTUTILS_USE_SDK: "1"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wlh\\amd64"
- PYTHON: "C:\\Python34-x64"
PYTHON_ARCH: "64"
DISTUTILS_USE_SDK: "1"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wlh\\amd64"
- PYTHON: "C:\\Python35-x64"
PYTHON_ARCH: "64"
WDDK_LIB_PATH: "C:\\WinDDK\\7600.16385.1\\lib\\wlh\\amd64"
install:
# Setup the build environment
- "%PYTHON%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install cython==0.23.4"
# Install Seabreeze
- cmd: echo "Downloading seabreeze-%SEABREEZE%-unofficial-Setup%PYTHON_ARCH%.msi"
- "appveyor DownloadFile https://github.com/ap--/libseabreeze/releases/download/libseabreeze-%SEABREEZE%/seabreeze-%SEABREEZE%-unofficial-Setup%PYTHON_ARCH%.msi -FileName sbsetup.msi"
- cmd: msiexec /i sbsetup.msi /quiet /qn /norestart
build: off
test_script:
- "echo 'starting'"
after_test:
# build_cmd form http://python-packaging-user-guide.readthedocs.org/en/latest/appveyor/
- '.\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py build_ext --library-dirs="%SEABREEZE_PATH%;%WDDK_LIB_PATH%"'
- ".\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py build"
- ".\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
- ".\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py bdist_msi"
artifacts:
- path: dist\*
name: wheel
deploy:
release: $(appveyor_repo_tag_name)
provider: GitHub
auth_token:
secure: 2jmPAIr0bDr/Aak6PsCtd5nRPQpHEKwjKN13k4fDp4f6fbibuLmGEkQspQguQwFe
artifact: wheel
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only