forked from kivy/kivy-sdk-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
251 lines (221 loc) · 7.48 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
os: Visual Studio 2015
branches:
only:
- master
- appveyor_test
environment:
WHEEL_DIR: C:\kivy_wheels
COMPILER: mingw
KIVY_BUILD_DIR: C:\kivy_build
KIVY_BUILD_CACHE: C:\kivy_build_cache2
AIRPLANE_CHARGE:
secure: HgQr7XMKpB6lWn33SKv0GyYZbh1RfpgvaIKEE0B54R5XHJujQg5dhOEB3Vc2CfAqCprX+CGxXAjQwFnuv6pJeA3++9Z8/1SfFuEqCF59J7PqsDs2thA8lNHLRsThvRVJrBt2jcb1wrG3Nf3sz3vi7e+rBzYjprkcYiTP0XJ5FdQekyFTTjuXYaRBGWrwGX81dEVVUkGFuEZFYWJq2Yf/PkFGOX+IN0CjgpFB0pGfZSJcIG7mvscurfG/KvckLhNUINprUKt0pJ8iCN0iufsbmrOnuG+WC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5Qv8FLD41oskVpiSwdc=
GDRIVE_CLIENT_SECRET:
secure: 7J8TZnhr3MsF5rveMVVkbrr9tzTwGG6rHWZMorW0WN4=
GDRIVE_sdl2_UPLOAD_ID: 0B1_HB9J8mZepTVJhenRET01VQTQ
GDRIVE_sdl2_dev_UPLOAD_ID: 0B1_HB9J8mZepWlZMNWVKVHE5R28
GDRIVE_glew_UPLOAD_ID: 0B1_HB9J8mZepUkJ3TTJhY0ZuWGs
GDRIVE_glew_dev_UPLOAD_ID: 0B1_HB9J8mZepak1KeGJ5MDdSQ0E
GDRIVE_gstreamer_UPLOAD_ID: 0B1_HB9J8mZepNzZ5aW91Q0tJU2s
GDRIVE_gstreamer_dev_UPLOAD_ID: 0B1_HB9J8mZepZzNSZVI2V19mQ00
GDRIVE_angle_UPLOAD_ID: 0B1_HB9J8mZepRDltSDB6Z0FVT00
GDRIVE_angle_dev_UPLOAD_ID: fake
matrix:
- PACKAGE_TARGET: sdl2
PYVER: 27
BITTNESS: 86
- PACKAGE_TARGET: glew
PYVER: 27
BITTNESS: 86
- PACKAGE_TARGET: gstreamer
PYVER: 27
BITTNESS: 86
- PACKAGE_TARGET: angle
PYVER: 27
BITTNESS: 86
- PACKAGE_TARGET: sdl2
PYVER: 33
BITTNESS: 86
- PACKAGE_TARGET: glew
PYVER: 33
BITTNESS: 86
- PACKAGE_TARGET: gstreamer
PYVER: 33
BITTNESS: 86
- PACKAGE_TARGET: angle
PYVER: 33
BITTNESS: 86
- PACKAGE_TARGET: sdl2
PYVER: 34
BITTNESS: 86
- PACKAGE_TARGET: glew
PYVER: 34
BITTNESS: 86
- PACKAGE_TARGET: gstreamer
PYVER: 34
BITTNESS: 86
- PACKAGE_TARGET: angle
PYVER: 34
BITTNESS: 86
- PACKAGE_TARGET: sdl2
PYVER: 35
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: glew
PYVER: 35
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: gstreamer
PYVER: 35
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: angle
PYVER: 35
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: sdl2
PYVER: 36
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: glew
PYVER: 36
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: gstreamer
PYVER: 36
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: angle
PYVER: 36
BITTNESS: 86
COMPILER: msvc
- PACKAGE_TARGET: sdl2
PYVER: 27
BITTNESS: 64
- PACKAGE_TARGET: glew
PYVER: 27
BITTNESS: 64
- PACKAGE_TARGET: gstreamer
PYVER: 27
BITTNESS: 64
- PACKAGE_TARGET: angle
PYVER: 27
BITTNESS: 64
- PACKAGE_TARGET: sdl2
PYVER: 33
BITTNESS: 64
- PACKAGE_TARGET: glew
PYVER: 33
BITTNESS: 64
- PACKAGE_TARGET: gstreamer
PYVER: 33
BITTNESS: 64
- PACKAGE_TARGET: angle
PYVER: 33
BITTNESS: 64
- PACKAGE_TARGET: sdl2
PYVER: 34
BITTNESS: 64
- PACKAGE_TARGET: glew
PYVER: 34
BITTNESS: 64
- PACKAGE_TARGET: gstreamer
PYVER: 34
BITTNESS: 64
- PACKAGE_TARGET: angle
PYVER: 34
BITTNESS: 64
- PACKAGE_TARGET: sdl2
PYVER: 35
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: glew
PYVER: 35
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: gstreamer
PYVER: 35
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: angle
PYVER: 35
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: sdl2
PYVER: 36
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: glew
PYVER: 36
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: gstreamer
PYVER: 36
BITTNESS: 64
COMPILER: msvc
- PACKAGE_TARGET: angle
PYVER: 36
BITTNESS: 64
COMPILER: msvc
cache: C:\kivy_build_cache2
build_script:
- ps: >-
function Check-Error
{
param([int]$SuccessVal = 0)
if ($SuccessVal -ne $LastExitCode) {
throw "Failed with exit code $LastExitCode"
}
}
$env:SSL_CERT_FILE="C:\projects\kivy-sdk-packager\win\DST Root CA X3.pem"
cd C:\projects\kivy-sdk-packager
mkdir "$env:KIVY_BUILD_DIR"
mkdir "$env:WHEEL_DIR"
if (!(Test-Path "$env:KIVY_BUILD_CACHE")) {
mkdir "$env:KIVY_BUILD_CACHE"
}
$GDRIVE_ID = [Environment]::GetEnvironmentVariable("GDRIVE_$env:PACKAGE_TARGET`_UPLOAD_ID", "Process")
$DEV_GDRIVE_ID = [Environment]::GetEnvironmentVariable("GDRIVE_$env:PACKAGE_TARGET`_dev_UPLOAD_ID", "Process")
if ($env:BITTNESS -eq "64") {
$PYTHON_ROOT = "C:\Python$env:PYVER-x64"
$WHELL_BITNESS = "win_amd64"
} else {
$PYTHON_ROOT = "C:\Python$env:PYVER"
$WHELL_BITNESS = "win32"
}
$env:PATH = "$PYTHON_ROOT;$PYTHON_ROOT\Scripts;$env:PATH"
$WHEEL_VERSION = python -c "import win.$env:PACKAGE_TARGET;print(win.$env:PACKAGE_TARGET.__version__)"
Check-Error
$WHEEL_BIN = "kivy.deps.$env:PACKAGE_TARGET-$WHEEL_VERSION-cp$env:PYVER-cp$env:PYVER`m-$WHELL_BITNESS.whl"
$WHEEL_DEV = "kivy.deps.$env:PACKAGE_TARGET`_dev-$WHEEL_VERSION-cp$env:PYVER-cp$env:PYVER`m-$WHELL_BITNESS.whl"
C:\Python27\Scripts\pip.exe install pydrive
Check-Error
$ALREADY_EXISTS = C:\Python27\python.exe win\gdrive.py exists "$GDRIVE_ID" "$WHEEL_BIN"
Check-Error
if ($ALREADY_EXISTS -eq "True" -and $DEV_GDRIVE_ID -ne "fake") {
$ALREADY_EXISTS = C:\Python27\python.exe win\gdrive.py exists "$DEV_GDRIVE_ID" "$WHEEL_DEV"
Check-Error
}
echo "Already exists=$ALREADY_EXISTS $WHEEL_BIN $WHEEL_DEV"
if ($ALREADY_EXISTS -eq "False") {
python -m pip install pip wheel setuptools --upgrade
Check-Error
if ($env:COMPILER -eq "mingw") {
pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy
Check-Error
}
echo "Executing win.$env:PACKAGE_TARGET build_path $env:KIVY_BUILD_DIR arch $env:BITTNESS pyver $env:PYVER package $env:PACKAGE_TARGET output $env:WHEEL_DIR cache $env:KIVY_BUILD_CACHE compiler $env:COMPILER"
python -m win.$env:PACKAGE_TARGET build_path "$env:KIVY_BUILD_DIR" arch $env:BITTNESS pyver $env:PYVER package $env:PACKAGE_TARGET output "$env:WHEEL_DIR" cache "$env:KIVY_BUILD_CACHE" compiler "$env:COMPILER"
Check-Error
if ($DEV_GDRIVE_ID -ne "fake") {
C:\Python27\python.exe win\gdrive.py upload "$DEV_GDRIVE_ID" "$env:WHEEL_DIR\kivy.deps.$env:PACKAGE_TARGET`_dev*"
Check-Error
}
C:\Python27\python.exe win\gdrive.py upload "$GDRIVE_ID" "$env:WHEEL_DIR\kivy.deps.$env:PACKAGE_TARGET-*"
Check-Error
}