mirror of https://github.com/sipwise/rtpengine.git
commit
23fcc4838f
@ -0,0 +1,11 @@
|
||||
language: c
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y gdebi-core
|
||||
- sudo ./utils/build_deps.sh $TRAVIS_BUILD_DIR
|
||||
script:
|
||||
- make -C iptables-extension
|
||||
- make -C daemon -j`nproc`
|
||||
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# build_deps script for travis CI
|
||||
# installs the build_deps packages needed to build Kamailio
|
||||
# environment based on Ubuntu 12.04 LTS (precise)
|
||||
#
|
||||
BASE_DIR=${1:-$(pwd)}
|
||||
CONTROL_FILE="${BASE_DIR}/debian/control"
|
||||
if ! [ -f "${CONTROL_FILE}" ]; then
|
||||
echo "Error: No ${CONTROL_FILE} found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BUILD_DEPS=$(/usr/bin/gdebi --quiet --non-interactive \
|
||||
--option=APT::Install-Recommends=false \
|
||||
--apt-line ${CONTROL_FILE})
|
||||
if [ -z "${BUILD_DEPS}" ]; then
|
||||
echo "Error: no build deps packages resolved"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
apt-get install -y $BUILD_DEPS
|
||||
Loading…
Reference in new issue