#!/bin/sh

set -e

BASEDIR="${BASEDIR:-$(dirname -- "${0}")/../..}"
BASEDIR="$(readlink -f -- ${BASEDIR})"

. ${BASEDIR}/scripts/travis/functions.sub

if [ -e "${DISTDIR}" ]
then
  rm -rf "${DISTDIR}"
fi
mkdir "${DISTDIR}"
cd "${DISTDIR}"

RTPP_BRANCH=${RTPP_BRANCH:-"master"}
MAKE_CMD="make"
git clone -b "${RTPP_BRANCH}" --recursive git://github.com/sippy/rtpproxy.git

##if [ "${RTPP_BRANCH}" != "master" ]
##then
##  git clone -b master --recursive git://github.com/sippy/rtpproxy.git \
##   "${RTPPDDIR_m}"
##fi

cd rtpproxy
./configure
${MAKE_CMD} all
cd ..

git clone git://github.com/sobomax/libelperiodic.git
cd libelperiodic
./configure
make all
sudo make install
for pyint in python python2 python3
do
  ${pyint} setup.py build
  sudo ${pyint} setup.py install
done
cd ..

#!/bin/sh

set -e

BASEDIR="${BASEDIR:-$(dirname -- "${0}")/../..}"
BASEDIR="$(readlink -f -- ${BASEDIR})"

. ${BASEDIR}/scripts/travis/functions.sub

if [ -e "${DISTDIR}" ]
then
  rm -rf "${DISTDIR}"
fi
mkdir "${DISTDIR}"
cd "${DISTDIR}"

RTPP_BRANCH=${RTPP_BRANCH:-"master"}
MAKE_CMD="make"
git clone -b "${RTPP_BRANCH}" --recursive git://github.com/sippy/rtpproxy.git

##if [ "${RTPP_BRANCH}" != "master" ]
##then
##  git clone -b master --recursive git://github.com/sippy/rtpproxy.git \
##   "${RTPPDDIR_m}"
##fi

cd rtpproxy
./configure
${MAKE_CMD} all
cd ..

git clone git://github.com/sobomax/libelperiodic.git
cd libelperiodic
./configure
make all
sudo make install
for pyint in python python2 python3
do
  ${pyint} setup.py build
  sudo ${pyint} setup.py install
  ${pyint} -c "from elperiodic.ElPeriodic import ElPeriodic"
done
cd ..

Test to see if elperiodic actually importable.
Test to see if elperiodic actually importable.
