forked from py2exe/py2exe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
134 lines (113 loc) · 3.3 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
image: Visual Studio 2015
environment:
MSVC_VERSION: "Visual Studio 14"
INCLUDE: "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Include;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10586.0\\ucrt"
LIB: "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\lib;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\lib;C:\\Program Files (x86)\\Windows Kits\\10\\lib;C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.10586.0\\ucrt\\x86"
matrix:
- PYTHON: "C:\\Python35"
PYTHON_VERSION: 3.5
PYTHON_ARCH: 32
- PYTHON: "C:\\Python36"
PYTHON_VERSION: 3.6
PYTHON_ARCH: 32
- PYTHON: "C:\\Python37"
PYTHON_VERSION: 3.7
PYTHON_ARCH: 32
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: 3.5
PYTHON_ARCH: 64
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: 3.6
PYTHON_ARCH: 64
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: 3.7
PYTHON_ARCH: 64
configuration: Release
init:
- set PYTHONPATH=%PYTHON%
- set PYTHONHOME=%PYTHON%
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python -m site
- python -m pip install -U pip setuptools wheel
- python -m pip install -U cachetools pefile
for:
-
matrix:
only:
- PYTHON_VERSION: 3.5
PYTHON_ARCH: 32
install:
- python setup.py bdist_wheel --python-tag cp35 --plat-name win32
-
matrix:
only:
- PYTHON_VERSION: 3.6
PYTHON_ARCH: 32
install:
- python setup.py bdist_wheel --python-tag cp36 --plat-name win32
-
matrix:
only:
- PYTHON_VERSION: 3.7
PYTHON_ARCH: 32
install:
- python setup.py bdist_wheel --python-tag cp37 --plat-name win32
-
matrix:
only:
- PYTHON_VERSION: 3.5
PYTHON_ARCH: 64
install:
- python setup.py bdist_wheel --python-tag cp35 --plat-name win_amd64
-
matrix:
only:
- PYTHON_VERSION: 3.6
PYTHON_ARCH: 64
install:
- python setup.py bdist_wheel --python-tag cp36 --plat-name win_amd64
-
matrix:
only:
- PYTHON_VERSION: 3.7
PYTHON_ARCH: 64
install:
- python setup.py bdist_wheel --python-tag cp37 --plat-name win_amd64
# Not a project with an msbuild file, build done at install.
build: off
before_test:
- dir dist
- for /r %%f in (dist/*) do @set wheelname=%%~nxf
- echo %wheelname%
- for /F "tokens=2 delims='" %%a in ('findstr __version__ py2exe\__init__.py') do @set ver=%%a
- echo %ver%
test_script:
- pip install dist/%wheelname%
#- pip install --no-index --find-links=dist py2exe
- python -c "import py2exe"
- cd tests
- python maketest.py
- cd functional
- runner tk_test
- runner sqlite_test
- runner certifi_test
- runner certifi_zip_test
- runner pywin32_test
- runner ssl_test
artifacts:
- path: 'dist/$(wheelname)'
name: $(wheelname)
# Deploy build to BinTray
deploy:
provider: BinTray
username: alby128
api_key:
secure: lAocj5KA9Z9x4BefQBIgNlQJbeW4qPBfCgYVBHMyOP3NgyhnMLmvR57ZCqtCKBlQ
subject: alby128
repo: py2exe
package: py2exe
version: $(ver)
publish: true
override: true