forked from openai/roboschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_script
39 lines (37 loc) · 925 Bytes
/
.travis_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
#!/bin/bash -x
#trying to fix endless loop
#described here: https://github.com/TheCrazyT/roboschool/issues/2
sed 's/\(std..getline.*line.\);/if(!\1)break;/' -i bullet3/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp
if [ $? != 0 ]
then
exit 1
fi
ROBOSCHOOL_PATH=$(pwd)
mkdir bullet3/build
cd bullet3/build
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_DOUBLE_PRECISION=1 -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-mingw64.cmake -DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$ROBOSCHOOL_PATH/roboschool/cpp-household/bullet_local_install \
-DBUILD_CPU_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_EXTRAS=OFF -DBUILD_UNIT_TESTS=OFF \
-DBUILD_CLSOCKET=OFF -DBUILD_ENET=OFF -DBUILD_OPENGL3_DEMOS=OFF ..
if [ $? != 0 ]
then
exit 1
fi
make -j4
if [ $? != 0 ]
then
exit 1
fi
make install
if [ $? != 0 ]
then
exit 1
fi
cd ../..
cd roboschool/cpp-household
make CROSS_MINGW=1
if [ $? != 0 ]
then
exit 1
fi
exit 0