forked from sems-server/sems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
111 lines (99 loc) · 3.64 KB
/
.travis.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: cpp
notifications:
email: false
python:
- "2.7"
sudo: required
addons:
apt:
update: true
packages: # bcg729, ilbc, mISDN are missing
- flite-dev
- libcodec2-dev
- libevent-dev
- libgsm1-dev
- libhiredis-dev
- libmp3lame-dev
- libmpg123-dev
- libmysql++-dev
- libmysqlcppconn-dev
- libopus-dev
- librtmp-dev
- libsamplerate-dev
- libspandsp-dev
- libspeex-dev
- libssl-dev
- python-sip-dev
homebrew: # bcg729, flite, ilbc (not tested), mISDN, rtmp are missing
update: true
packages:
- codec2
- hiredis
- lame
- libevent
- libgsm
- libsamplerate
- mpg123
- mysql++
- mysql-connector-c
- openssl
- opus
- sip
- spandsp
- speex
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
env: OPENSSL_ROOT_DIR=/usr SEMS_USE_TTS=yes
- os: linux
dist: xenial
compiler: clang
env: OPENSSL_ROOT_DIR=/usr SEMS_USE_TTS=yes
- os: linux
dist: bionic
compiler: gcc
env: OPENSSL_ROOT_DIR=/usr SEMS_USE_TTS=yes
- os: linux
dist: bionic
compiler: clang
env: OPENSSL_ROOT_DIR=/usr SEMS_USE_TTS=yes
- os: osx
osx_image: xcode9.4
compiler: clang
env: OPENSSL_ROOT_DIR=/usr/local/opt/openssl SEMS_USE_TTS=no
- os: osx
osx_image: xcode9.4
compiler: gcc
env: OPENSSL_ROOT_DIR=/usr/local/opt/openssl SEMS_USE_TTS=no
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew link --force [email protected]
brew link --force mysql-client
sed -i -e "s,<mysql/udf_registration_types.h>,\"mysql/udf_registration_types.h\",g" /usr/local/include/mysql/mysql_com.h
# Manually install bcg729
wget https://github.com/BelledonneCommunications/bcg729/archive/1.0.4/bcg729-1.0.4.tar.gz
tar xfv bcg729-1.0.4.tar.gz
# Fix for glibtoolize
sed -i -e "s,/opt/local/bin/glibtoolize,/usr/local/bin/glibtoolize,g" bcg729-1.0.4/autogen.sh
pushd bcg729-1.0.4 && ./autogen.sh && ./configure && make && sudo make install && popd
fi
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# Manually install bcg729
wget https://github.com/BelledonneCommunications/bcg729/archive/1.0.4/bcg729-1.0.4.tar.gz
tar xfv bcg729-1.0.4.tar.gz
pushd bcg729-1.0.4 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install && popd
# Fix for a very old GCC in Trusty and Xenial
sed -i -e "s,\-Werror=stringop-truncation,,g" CMakeLists.txt
fi
before_script:
- mkdir build
- cd build
- cmake .. -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX= -DBUILD_SHARED_LIBS:BOOL=ON -DSEMS_USE_SPANDSP=yes -DSEMS_USE_LIBSAMPLERATE=yes -DSEMS_USE_ZRTP=NO -DSEMS_USE_MP3=yes -DSEMS_USE_ILBC=yes -DSEMS_USE_G729=yes -DSEMS_USE_OPUS=yes -DSEMS_USE_CODEC2=yes -DSEMS_USE_TTS=${SEMS_USE_TTS} -DSEMS_USE_OPENSSL=yes -DSEMS_USE_MONITORING=yes -DSEMS_USE_IPV6=yes -DSEMS_CFG_PREFIX= -DSEMS_AUDIO_PREFIX=/usr/share -DSEMS_EXEC_PREFIX=/usr -DSEMS_LIBDIR=lib -DSEMS_DOC_PREFIX=/usr/share/doc -DOPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR}
script:
- make
- make test ARGS="-V"