diff options
-rw-r--r-- | .travis.yml | 22 | ||||
-rwxr-xr-x | contrib/travis.sh | 20 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..13d630c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: c +os: + - linux +sudo: required +addons: + apt: + packages: + - autoconf + - automake + - make + - gcc + - debhelper + - devscripts + - libtool + - build-essential + - pkg-config + - libtalloc-dev + - libpcsclite-dev + - libpcap-dev + +script: + - contrib/travis.sh diff --git a/contrib/travis.sh b/contrib/travis.sh new file mode 100755 index 0000000..7e73522 --- /dev/null +++ b/contrib/travis.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -ex + +rm -rf deps/install +mkdir deps || true +cd deps +git clone git://git.osmocom.org/libosmocore + +cd libosmocore +git reset --hard 460f9ef7da1db11b104fdfe635ebcbd8a071f205 +autoreconf --install --force +./configure --prefix=$PWD/../install +make -j 4 install + +cd ../../ +autoreconf --install --force +PCAP_LIBS="-lpcap" PCAP_CFLAGS="" PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig ./configure --with-pcap-config=/bin/true +PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig make -j 4 +DISTCHECK_CONFIGURE_FLAGS="--with-pcap-config=/bin/true" PCAP_LIBS="-lpcap" PCAP_CFLAGS="" PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig LD_LIBRARY_PATH=$PWD/deps/install/lib make distcheck |