mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
travis: Test build of debian packages.
We had a lot of issues with debian packaging lately. This job will check build and installation of debian packages to avoid most of such issues in the future. Installing only minimal set of tools, most of dependencies will be installed according to package description, this way we will check if we have all required dependencies listed. Not trying to install openvswitch-ipsec package as there is an issue that python from the pyenv for some reason doesn't see ovs packages installed from python3-openvswitch, i.e. ipsec service is not able to start. Tests are skipped because they are tested in many other scenarios. No need to waste time. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
parent
5601e86c4e
commit
00d3374d8d
12
.travis.yml
12
.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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user