summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml12
-rwxr-xr-x.travis/linux-build.sh11
-rwxr-xr-x.travis/linux-prepare.sh6
3 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 527240a67..b5eaaaea2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,6 +67,18 @@ matrix:
compiler: clang
env: OPTS="--disable-ssl"
+matrix:
+ include:
+ - env: DEB_PACKAGE=1
+ addons:
+ apt:
+ packages:
+ - linux-headers-$(uname -r)
+ - build-essential
+ - fakeroot
+ - devscripts
+ - equivs
+
script: ./.travis/${TRAVIS_OS_NAME}-build.sh $OPTS
notifications:
diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
index e0a065291..6981d1d47 100755
--- a/.travis/linux-build.sh
+++ b/.travis/linux-build.sh
@@ -164,6 +164,17 @@ function build_ovs()
fi
}
+if [ "$DEB_PACKAGE" ]; then
+ mk-build-deps --install --root-cmd sudo --remove debian/control
+ dpkg-checkbuilddeps
+ DEB_BUILD_OPTIONS='parallel=4 nocheck' fakeroot debian/rules binary
+ # Not trying to install ipsec package as there are issues with system-wide
+ # installed python3-openvswitch package and the pyenv used by Travis.
+ packages=$(ls $(pwd)/../*.deb | grep -v ipsec)
+ sudo apt install ${packages}
+ exit 0
+fi
+
if [ "$KERNEL" ]; then
install_kernel $KERNEL
fi
diff --git a/.travis/linux-prepare.sh b/.travis/linux-prepare.sh
index 8cbbd5623..71eb347e8 100755
--- a/.travis/linux-prepare.sh
+++ b/.travis/linux-prepare.sh
@@ -2,6 +2,12 @@
set -ev
+if [ "$DEB_PACKAGE" ]; then
+ # We're not using sparse for debian packages, tests are skipped and
+ # all extra dependencies tracked by mk-build-deps.
+ exit 0
+fi
+
# Build and install sparse.
#
# Explicitly disable sparse support for llvm because some travis