File: .travis.bash

package info (click to toggle)
morse-simulator 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 169,784 kB
  • ctags: 3,593
  • sloc: python: 23,947; ansic: 1,370; cpp: 786; makefile: 120; xml: 34; sh: 7
file content (36 lines) | stat: -rwxr-xr-x 1,120 bytes parent folder | download
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