diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-08-03 21:13:15 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-08-03 22:00:58 +0200 |
commit | 9646754e1f82d3b846304dc5803d520641064ba4 (patch) | |
tree | 91bb358ea0b3a89ea5e6367618aaa72066b150f5 | |
parent | 26ba7b247e7ec247d2e3163d39160d912e3de75c (diff) |
ci: Add travis.yml for the github account
Change-Id: I26de644a9cf4c6d6fb366c8a8fd701570005b9a8
-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 |