File: .travis.bash

package info (click to toggle)
morse-simulator 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 186,952 kB
  • ctags: 3,992
  • sloc: ansic: 108,311; python: 25,692; cpp: 786; makefile: 120; xml: 34; sh: 7
file content (35 lines) | stat: -rwxr-xr-x 979 bytes parent folder | download | duplicates (3)
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
#!/bin/bash -e
echo "MORSE ci setup and test"
echo "======================="
lsb_release -a; uname -a

echo "Setup MORSE env"
# Avoid ALSA errors on system without sound card
echo -e "#! /bin/sh\nblender -setaudio NULL \$@" > blender
chmod +x blender
export MORSE_BLENDER=$(pwd)/blender

MORSE_PREFIX=~/morse_install

mkdir -p ${MORSE_PREFIX}

echo "Build and install MORSE"
mkdir build && cd build
cmake -DPYTHON_EXECUTABLE=$(which python3.4) -DCMAKE_INSTALL_PREFIX=${MORSE_PREFIX} ..
make install

export PATH=${PATH}:${MORSE_PREFIX}/bin
export PYTHONPATH=${MORSE_PREFIX}/lib/python3/dist-packages:$PYTHONPATH

morse_test() {
    echo "Run $1"
    echo "========================================"
    touch $2
    tail -f $2 &
    xvfb-run --auto-servernum --server-args="-screen 0 160x120x16" python3.4 ../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