hudson-sflphone-script.sh 827 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash
#
# Script used by Hudson continious integration server to build SFLphone
#
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>

7
git clean -f -d -x
8 9
XML_RESULTS="cppunitresults.xml"

10
set -x
Rafaël Carré's avatar
Rafaël Carré committed
11

12 13 14 15 16 17 18 19
# Compile the plugins
pushd plugins
make distclean
./autogen.sh
./configure --prefix=/usr
make -j
popd

20
# Compile the daemon
Rafaël Carré's avatar
Rafaël Carré committed
21
pushd daemon
Tristan Matthews's avatar
Tristan Matthews committed
22
make distclean
23
./autogen.sh
24
# Compile pjproject first
25 26 27 28 29
pushd libs/pjproject
./autogen.sh
./configure
make && make dep
popd
30
./configure --prefix=/usr
31
make clean
32
make -j
33
make doc
34
make check
35 36
popd

Emmanuel Milou's avatar
Emmanuel Milou committed
37
# Run the unit tests for the daemon
Rafaël Carré's avatar
Rafaël Carré committed
38
pushd daemon/test
39
# Remove the previous XML test file
40
rm -rf $XML_RESULTS
41
./run_tests.sh || exit 1
42
popd
Emmanuel Milou's avatar
Emmanuel Milou committed
43

44
# Compile the client
Rafaël Carré's avatar
Rafaël Carré committed
45
pushd gnome
Tristan Matthews's avatar
Tristan Matthews committed
46
make distclean
47 48
./autogen.sh
./configure --prefix=/usr
49
make clean
50
make -j 1
51
make check
52 53
popd

54 55
# SUCCESS
exit 0