forked from duzy/gst-switch
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis-run.sh
executable file
·57 lines (53 loc) · 1.01 KB
/
.travis-run.sh
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
#! /bin/bash -ex
./autogen.sh --prefix=/usr || {
printf "Failed to do autogen!!!\n"
exit -1
}
make clean
make || {
printf "make of gst-switch failed!!!\n"
exit -1
}
sudo make install || {
printf "make install of gst-switch failed!!!\n"
exit -1
}
function blue {
echo -en '\E[1;34m'
echo $@
tput sgr0
}
export DISPLAY=:99.0
export GCOV_PREFIX=$TRAVIS_BUILD_DIR/gst-switch-coverage
case $TEST in
python-api )
cd python-api
{
set +x
echo -n "Checking under "
blue "Python 3"
echo "-----------------------------------------------------------"
}
make PYTHONVERSION=3.4 $TYPE
{
set +x
echo "-----------------------------------------------------------"
echo
echo -n "Checking under "
blue "Python 2"
echo "-----------------------------------------------------------"
}
make PYTHONVERSION=2.7 $TYPE
{
set +x
echo "-----------------------------------------------------------"
}
;;
server )
make $TYPE
;;
* )
echo "Unknown TEST='$TEST'"
exit -1
;;
esac