forked from morse-simulator/morse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.bash
executable file
·36 lines (31 loc) · 1.09 KB
/
.travis.bash
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
#!/bin/bash -e
echo "MORSE installation and builder test"
echo "========================================"
lsb_release -a; uname -a
[[ -z "$(uname -p | grep 64)" ]] && arch="i686" || arch="x86_64"
BLENDER="blender-2.64a-linux-glibc27-$arch"
echo "Download Blender ${BLENDER}"
(wget -q http://download.blender.org/release/Blender2.64/${BLENDER}.tar.bz2
tar jxf ${BLENDER}.tar.bz2 )& blenderpid=$!
echo "Setup MORSE env"
echo -e "#! /bin/sh\n$(pwd)/${BLENDER}/blender -setaudio NULL \$@" > blender
chmod +x blender
export MORSE_BLENDER=$(pwd)/blender
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.2/site-packages
echo "Build and install MORSE"
mkdir build && cd build
cmake -DPYMORSE_SUPPORT=ON ..
make
sudo make install
wait $blenderpid # Blender should be ready now
morse_test() {
echo "Run $1"
echo "========================================"
touch $2
tail -f $2 &
xvfb-run --server-args="-screen 0 1x21x16" python3 ../testing/$1
kill % # kill tail
}
morse_test base/gps_testing.py GPSTest.log
morse_test base/pose_testing.py PoseTest.log
morse_test base/sick_testing.py Sick_Test.log