forked from openai/roboschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_before_script
142 lines (126 loc) · 3.08 KB
/
.travis_before_script
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
#!/bin/bash -x
whereis 7zr
7zr x precompiled_headers.7z 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
wget -O precompiled_headers/libboost_python3-mgw72-mt-x64-1_66.dll.a https://bintray.com/thecrazyt/boost_python/download_file?file_path=libboost_python3.dll.a
mkdir /downloads/ 2>/dev/null
mkdir /downloads/qt /downloads/boost /downloads/python /downloads/assimp /downloads/gcc-libs
ln -s /downloads/qt $(pwd)/qt
ln -s /downloads/boost $(pwd)/boost
ln -s /downloads/python $(pwd)/python
ln -s /downloads/assimp $(pwd)/assimp
ln -s /downloads/gcc-libs $(pwd)/gcc-libs
ls -lah
mv mingw-w64-x86_64-qt5-5.10.0-1-any.pkg.tar.xz qt/
if [ $? != 0 ]
then
exit 1
fi
mv mingw-w64-x86_64-python3-3.6.4-1-any.pkg.tar.xz python/
if [ $? != 0 ]
then
exit 1
fi
mv mingw-w64-x86_64-boost-1.66.0-1-any.pkg.tar.xz boost/
#mv boost_2_mvc.7z boost/
if [ $? != 0 ]
then
exit 1
fi
mv mingw-w64-x86_64-assimp-4.0.1-1-any.pkg.tar.xz assimp/
if [ $? != 0 ]
then
exit 1
fi
mv mingw-w64-x86_64-gcc-libs-7.2.0-1-any.pkg.tar.xz gcc-libs/
cd qt
ls mingw64
if [ $? != 0 ]
then
ls -lah mingw-w64-x86_64-qt5-5.10.0-1-any.pkg.tar.xz
tar xf mingw-w64-x86_64-qt5-5.10.0-1-any.pkg.tar.xz mingw64/include/ mingw64/bin/ mingw64/lib/ mingw64/share/qt5/plugins/imageformats mingw64/share/qt5/plugins/platforms 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-qt5-5.10.0-1-any.pkg.tar.xz
fi
cd ../python
ls mingw64
if [ $? != 0 ]
then
ls -lah mingw-w64-x86_64-python3-3.6.4-1-any.pkg.tar.xz
tar xf mingw-w64-x86_64-python3-3.6.4-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-python3-3.6.4-1-any.pkg.tar.xz
#wget https://dl.bintray.com/thecrazyt/roboschool/python_include.7z
#if [ $? != 0 ]
#then
# exit 1
#fi
#7zr x python_include.7z
#if [ $? != 0 ]
#then
# exit 1
#fi
#rm -Rf mingw64/include/python3.6m
#mv include mingw64/include/python3.6m
#
#if [ $? != 0 ]
#then
# exit 1
#fi
fi
cd ../boost
ls mingw64
if [ $? != 0 ]
then
ls -lah mingw-w64-x86_64-boost-1.66.0-1-any.pkg.tar.xz
tar xf mingw-w64-x86_64-boost-1.66.0-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-boost-1.66.0-1-any.pkg.tar.xz
#7zr x boost_2_mvc.7z
#if [ $? != 0 ]
#then
# exit 1
#fi
#patch -f -p3 < boost_2_mvc.patch
#if [ $? != 0 ]
#then
# exit 1
#fi
fi
cd ../assimp
ls mingw64
if [ $? != 0 ]
then
ls -lah mingw-w64-x86_64-assimp-4.0.1-1-any.pkg.tar.xz
tar xf mingw-w64-x86_64-assimp-4.0.1-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-assimp-4.0.1-1-any.pkg.tar.xz
fi
cd ../gcc-libs
ls mingw64
if [ $? != 0 ]
then
ls -lah mingw-w64-x86_64-gcc-libs-7.2.0-1-any.pkg.tar.xz
tar xf mingw-w64-x86_64-gcc-libs-7.2.0-1-any.pkg.tar.xz 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
exit 1
fi
rm mingw-w64-x86_64-gcc-libs-7.2.0-1-any.pkg.tar.xz
fi
exit 0