From 8d83f11956c45307faf17c11b8a292384f86992a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 4 Feb 2016 21:19:29 +0100 Subject: [PATCH] travis: try to run integration tests on travis It's likely to fail... --- .travis.yml | 5 +++++ .travis/install.sh | 4 ++++ .travis/run.sh | 5 +++++ 3 files changed, 14 insertions(+) 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 -- 2.39.5