forked from openai/roboschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_before_deploy
383 lines (350 loc) · 10.4 KB
/
.travis_before_deploy
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
#!/bin/bash -x
ls /downloads/*/mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz
if [ $? != 0 ]
then
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-bzip2-1.0.6-6-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-freetype-2.8.1-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-glib2-2.54.2-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-graphite2-1.3.9-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-harfbuzz-1.7.4-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libiconv-1.15-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-icu-58.2-2-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gettext-0.19.8.1-2-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-jasper-2.0.14-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libjpeg-turbo-1.5.2-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-pcre-8.41-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-pcre2-10.30-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libpng-1.6.34-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libwinpthread-git-5.0.0.4850.d1662dc7-1-any.pkg.tar.xz
if [ $? != 0 ]
then
exit 1
fi
fi
mkdir /downloads/zlib /downloads/bzip2 /downloads/freetype /downloads/glib2 /downloads/graphite2 /downloads/harfbuzz /downloads/libiconv /downloads/icu /downloads/gettext /downloads/jasper /downloads/libjpeg /downloads/pcre /downloads/pcre2 /downloads/libpng /downloads/libwinpthread 2>/dev/null
ln -s /downloads/zlib zlib
ln -s /downloads/bzip2 bzip2
ln -s /downloads/freetype freetype
ln -s /downloads/glib2 glib2
ln -s /downloads/graphite2 graphite2
ln -s /downloads/harfbuzz harfbuzz
ln -s /downloads/libiconv libiconv
ln -s /downloads/icu icu
ln -s /downloads/gettext gettext
ln -s /downloads/jasper jasper
ln -s /downloads/libjpeg libjpeg
ln -s /downloads/pcre pcre
ln -s /downloads/pcre2 pcre2
ln -s /downloads/libpng libpng
ln -s /downloads/libwinpthread libwinpthread
ls /downloads/*/mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz
if [ $? != 0 ]
then
mv mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz zlib/
mv mingw-w64-x86_64-bzip2-1.0.6-6-any.pkg.tar.xz bzip2/
mv mingw-w64-x86_64-freetype-2.8.1-1-any.pkg.tar.xz freetype/
mv mingw-w64-x86_64-glib2-2.54.2-1-any.pkg.tar.xz glib2/
mv mingw-w64-x86_64-graphite2-1.3.9-1-any.pkg.tar.xz graphite2/
mv mingw-w64-x86_64-harfbuzz-1.7.4-1-any.pkg.tar.xz harfbuzz/
mv mingw-w64-x86_64-libiconv-1.15-1-any.pkg.tar.xz libiconv/
mv mingw-w64-x86_64-icu-58.2-2-any.pkg.tar.xz icu/
mv mingw-w64-x86_64-gettext-0.19.8.1-2-any.pkg.tar.xz gettext/
mv mingw-w64-x86_64-jasper-2.0.14-1-any.pkg.tar.xz jasper/
mv mingw-w64-x86_64-libjpeg-turbo-1.5.2-1-any.pkg.tar.xz libjpeg/
mv mingw-w64-x86_64-pcre-8.41-1-any.pkg.tar.xz pcre/
mv mingw-w64-x86_64-pcre2-10.30-1-any.pkg.tar.xz pcre2/
mv mingw-w64-x86_64-libpng-1.6.34-1-any.pkg.tar.xz libpng/
mv mingw-w64-x86_64-libwinpthread-git-5.0.0.4850.d1662dc7-1-any.pkg.tar.xz libwinpthread/
fi
cd zlib
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-zlib-1.2.11-1-any.pkg.tar.xz
fi
cd ../bzip2
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-bzip2-1.0.6-6-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-bzip2-1.0.6-6-any.pkg.tar.xz
fi
cd ../freetype
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-freetype-2.8.1-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-freetype-2.8.1-1-any.pkg.tar.xz
fi
cd ../glib2
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-glib2-2.54.2-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-glib2-2.54.2-1-any.pkg.tar.xz
fi
cd ../graphite2
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-graphite2-1.3.9-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-graphite2-1.3.9-1-any.pkg.tar.xz
fi
cd ../harfbuzz
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-harfbuzz-1.7.4-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-harfbuzz-1.7.4-1-any.pkg.tar.xz
fi
cd ../libiconv
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-libiconv-1.15-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-libiconv-1.15-1-any.pkg.tar.xz
fi
cd ../icu
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-icu-58.2-2-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-icu-58.2-2-any.pkg.tar.xz
fi
cd ../gettext
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-gettext-0.19.8.1-2-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-gettext-0.19.8.1-2-any.pkg.tar.xz
fi
cd ../jasper
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-jasper-2.0.14-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-jasper-2.0.14-1-any.pkg.tar.xz
fi
cd ../libjpeg
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-libjpeg-turbo-1.5.2-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-libjpeg-turbo-1.5.2-1-any.pkg.tar.xz
fi
cd ../pcre
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-pcre-8.41-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-pcre-8.41-1-any.pkg.tar.xz
fi
cd ../pcre2
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-pcre2-10.30-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-pcre2-10.30-1-any.pkg.tar.xz
fi
cd ../libpng
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-libpng-1.6.34-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-libpng-1.6.34-1-any.pkg.tar.xz
fi
cd ../libwinpthread
ls mingw64
if [ $? != 0 ]
then
tar xf mingw-w64-x86_64-libwinpthread-git-5.0.0.4850.d1662dc7-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-libwinpthread-git-5.0.0.4850.d1662dc7-1-any.pkg.tar.xz
fi
cd ..
mkdir msysDLLs
mkdir additionalDLLs
mkdir build
mkdir msysDLLs/imageformats
mkdir msysDLLs/platforms
ls roboschool/cpp-household/bullet_local_install/bin/
cp roboschool/cpp-household/bullet_local_install/bin/* additionalDLLs/
cp bullet3/build/lib/libPhysicsClientC_API.dll additionalDLLs/
cp bullet3/build/lib/libPhysicsClientC_API_Debug.dll additionalDLLs/
cp assimp/mingw64/bin/libassimp.dll msysDLLs/
cp zlib/mingw64/bin/zlib1.dll msysDLLs/
cp zlib/mingw64/bin/libminizip-1.dll msysDLLs/
cp qt/mingw64/bin/Qt5Core.dll msysDLLs/
cp qt/mingw64/bin/Qt5Gui.dll msysDLLs/
cp qt/mingw64/bin/Qt5OpenGL.dll msysDLLs/
cp qt/mingw64/bin/Qt5Widgets.dll msysDLLs/
cp qt/mingw64/share/qt5/plugins/imageformats/qgif.dll msysDLLs/imageformats/
cp qt/mingw64/share/qt5/plugins/imageformats/qicns.dll msysDLLs/imageformats/
cp qt/mingw64/share/qt5/plugins/imageformats/qico.dll msysDLLs/imageformats/
cp qt/mingw64/share/qt5/plugins/imageformats/qjp2.dll msysDLLs/imageformats/
cp qt/mingw64/share/qt5/plugins/imageformats/qjpeg.dll msysDLLs/imageformats/
cp qt/mingw64/share/qt5/plugins/platforms/*.dll msysDLLs/platforms/
cp bzip2/mingw64/bin/libbz2-1.dll msysDLLs/
cp freetype/mingw64/bin/libfreetype-6.dll msysDLLs/
cp glib2/mingw64/bin/libglib-2.0-0.dll msysDLLs/
cp graphite2/mingw64/bin/libgraphite2.dll msysDLLs/
cp harfbuzz/mingw64/bin/libharfbuzz-0.dll msysDLLs/
cp libiconv/mingw64/bin/libiconv-2.dll msysDLLs/
cp icu/mingw64/bin/libicudt58.dll msysDLLs/
cp icu/mingw64/bin/libicuin58.dll msysDLLs/
cp icu/mingw64/bin/libicuuc58.dll msysDLLs/
cp gettext/mingw64/bin/libintl-8.dll msysDLLs/
cp jasper/mingw64/bin/libjasper-4.dll msysDLLs/
cp libjpeg/mingw64/bin/libjpeg-8.dll msysDLLs/
cp pcre/mingw64/bin/libpcre-1.dll msysDLLs/
cp pcre2/mingw64/bin/libpcre2-16-0.dll msysDLLs/
cp libpng/mingw64/bin/libpng16-16.dll msysDLLs/
cp libwinpthread/mingw64/bin/libwinpthread-1.dll msysDLLs/
cp gcc-libs/mingw64/bin/libstdc++-6.dll msysDLLs/
cp gcc-libs/mingw64/bin/libgcc_s_seh-1.dll msysDLLs/
#see https://github.com/TheCrazyT/boost_python_build_win
#to see how it is build
wget -O additionalDLLs/libboost_python3-mgw72-mt-x64-1_66.dll https://bintray.com/thecrazyt/boost_python/download_file?file_path=libboost_python3.dll
if [ $? != 0 ]
then
exit 1
fi
cat > rundemo.bat <<EOL
@echo off
REM Version of Python used: Python36
echo Keep in mind that you need to modify this file(adjust paths) before running
set ROOT=%CD%
cd %ROOT%\agent_zoo
set PYTHONPATH=%ROOT%
set QT_PLUGIN_PATH=%ROOT%\msysDLLs
set PATH=%ROOT%\msysDLLs;%ROOT%\additionalDLLs;d:\Python36\;%PATH%
echo PATH: %PATH%
d:\Python36\python demo_race2.py
pause
EOL
cp roboschool/*.pyd build/
zip -r build/roboschool.zip rundemo.bat roboschool msysDLLs additionalDLLs agent_zoo -x ./roboschool/cpp-household/**\*
zip -ru build/roboschool.zip ./roboschool/cpp-household/glsl/*.glsl
if [ $? != 0 ]
then
exit 1
fi
rm /downloads/*/*pkg.tar.xz
exit 0