forked from chan-sccp/chan-sccp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
76 lines (68 loc) · 3.24 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
language: c
dist:
- xenial
# Setup Build Matrix
compiler:
- clang
- gcc
env:
global:
- CONFIGURE_FLAGS="--enable-video --enable-conference --enable-distributed-devicestate --enable-advanced-functions --enable-experimental-xml --with-hash-size=3001"
- COVERITY_SCAN_PROJECT_NAME="chan-sccp/chan-sccp"
- COVERITY_SCAN_PROJECT_DESCRIPTION="SCCP Channel Addon for Asterisk"
- COVERITY_SCAN_NOTIFICATION_EMAIL="info@talon.nl"
- COVERITY_SCAN_BRANCH_PATTERN="develop"
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="./configure --enable-video --enable-conference --enable-distributed-devicestate --enable-advanced-functions --enable-experimental-xml && make clean"
- COVERITY_SCAN_BUILD_COMMAND="make -j2"
- COVERITY_SCAN_BUILD_URL="https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh"
- COVERITY_SCAN_BUILD="curl -s $COVERITY_SCAN_BUILD_URL | bash"
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created using: travis encrypt COVERITY_SCAN_TOKEN="xxxxxxx-xxxxxxx" -r dkgroot/chan-sccp-b
- secure: "ambC8BbKKCJRW/6iwwNS7xfcAg2X00jZsK0McvwpFUEBylxypUni2aBdOpOyMcUGd5hQJS16XbcObeBCim2ZYnyAUzR2LKoFZroGVbwN83OhLGJ83cSXgiDbzKUxuBKTwonUocB7HxWuFJLN1OXb9gucwQNWbLC2VuV5tTsp/NY="
matrix:
- REPOS=xenial # TLS
- REPOS=coverity # Xenial TLS
- REPOS=bionic # TLS
#- REPOS=cosmic
- REPOS=disco # Current
matrix:
allow_failures:
- compiler: clang
env: REPOS=coverity
# Install Required Devel Packages
before_install:
- if [ "${REPOS}" != "coverity" ];
then
sudo apt-get update -qq;
sudo apt-get install -qq libblocksruntime0 libblocksruntime-dev libpj2 libpjmedia2 libpjnath2 libpjproject-dev libpjsip2 libpjsua2 asterisk asterisk-dev asterisk-config asterisk-modules asterisk-dbg binutils.dev libc6-dev gettext autoconf automake m4 autotools-dev libltdl-dev;
else
sudo apt-get update -qq;
sudo apt-get install -qq libblocksruntime0 libblocksruntime-dev libpj2 libpjmedia2 libpjnath2 libpjproject-dev libpjsip2 libpjsua2 asterisk asterisk-dev asterisk-config asterisk-modules asterisk-dbg binutils.dev libc6-dev gettext autoconf automake m4 autotools-dev libltdl-dev;
if [ "x${CC}" == "xclang" ] && [ "x${TRAVIS_BRANCH}" == "xdevelop" ]; then
eval "$COVERITY_SCAN_BUILD" || exit 0;
fi;
fi
# Prepare Configure Script
before_script:
- autoreconf -fi
# Note that we use "make -k" to do the entire build, even if there was a
# build error in there somewhere. This prevents us from needing to submit
# to Travis, see the first error, fix that first error, submit again, ...etc.
script:
- ./configure ${CONFIGURE_FLAGS} || travis_terminate 1
- make -k || travis_terminate 1
- make test || travis_terminate 1
#after_script:
# - cat /home/travis/build/chan-sccp/chan-sccp/cov-int/scm_log.txt
# Report Results
notifications:
slack: chan-sccp:yfQzKYTnTf4cD1iHElnTYsXD
email:
recipients:
- ddegroot@talon.nl
- marcelloceschia@users.sourceforge.net
webhooks:
urls:
- https://webhooks.gitter.im/e/2d18f92f8374e4e15fbc
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always