Browse Source

Add travis-ci configuration

pull/54/head
Victor Seva 11 years ago
parent
commit
f8e16b9f7a
2 changed files with 33 additions and 0 deletions
  1. +11
    -0
      .travis.yml
  2. +22
    -0
      utils/build_deps.sh

+ 11
- 0
.travis.yml View File

@ -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`

+ 22
- 0
utils/build_deps.sh View File

@ -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…
Cancel
Save