From: Vincent Bernat Date: Thu, 4 Feb 2016 20:19:29 +0000 (+0100) Subject: travis: try to run integration tests on travis X-Git-Tag: 0.9.1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d83f11956c45307faf17c11b8a292384f86992a;p=thirdparty%2Flldpd.git travis: try to run integration tests on travis It's likely to fail... --- diff --git a/.travis.yml b/.travis.yml index 7938fe4a..b30ca06d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,11 @@ matrix: - os: osx compiler: clang env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json" + - os: linux + compiler: gcc + env: + - LLDPD_CONFIG_ARGS="--localstatedir=/var --sysconfdir=/etc --prefix=/usr" + - RUN_INTEGRATION=1 - os: linux compiler: gcc env: diff --git a/.travis/install.sh b/.travis/install.sh index 78f43735..34f7d1b9 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -30,5 +30,9 @@ case "$(uname -s)" in libsnmp-dev libxml2-dev libjansson-dev \ libevent-dev libreadline-dev libbsd-dev \ check + [ x"$RUN_INTEGRATION" != x"1" ] || \ + sudo apt-get -qqy install \ + vde2 iproute2 qemu-system-x86 \ + bridge-utils busybox ;; esac diff --git a/.travis/run.sh b/.travis/run.sh index 4e8e6747..096f3fe5 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -31,4 +31,9 @@ else if [ x"$TRAVIS_OS_NAME" = x"osx" ]; then make -C osx pkg fi + [ x"$RUN_INTEGRATION" != x"1" ] || { + cd tests + make integration-tests + sh integration-tests + } fi