]> git.proxmox.com Git - mirror_ovs.git/blob - .ci/linux-prepare.sh
ovs-monitor-ipsec: Add support for tunnel 'local_ip'.
[mirror_ovs.git] / .ci / linux-prepare.sh
1 #!/bin/bash
2
3 set -ev
4
5 if [ "$DEB_PACKAGE" ]; then
6 # We're not using sparse for debian packages, tests are skipped and
7 # all extra dependencies tracked by mk-build-deps.
8 exit 0
9 fi
10
11 # Build and install sparse.
12 #
13 # Explicitly disable sparse support for llvm because some travis
14 # environments claim to have LLVM (llvm-config exists and works) but
15 # linking against it fails.
16 # Disabling sqlite support because sindex build fails and we don't
17 # really need this utility being installed.
18 git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git
19 cd sparse
20 make -j4 HAVE_LLVM= HAVE_SQLITE= install
21 cd ..
22
23 pip3 install --disable-pip-version-check --user flake8 hacking
24 pip3 install --user --upgrade docutils
25 pip3 install --user 'meson==0.47.1'
26
27 if [ "$M32" ]; then
28 # Installing 32-bit libraries.
29 pkgs="gcc-multilib"
30 if [ -z "$GITHUB_WORKFLOW" ]; then
31 # 32-bit and 64-bit libunwind can not be installed at the same time.
32 # This will remove the 64-bit libunwind and install 32-bit version.
33 # GitHub Actions doesn't have 32-bit versions of these libs.
34 pkgs=$pkgs" libunwind-dev:i386 libunbound-dev:i386"
35 fi
36
37 sudo apt-get install -y $pkgs
38 fi
39
40 # IPv6 is supported by kernel but disabled in TravisCI images:
41 # https://github.com/travis-ci/travis-ci/issues/8891
42 # Enable it to avoid skipping of IPv6 related tests.
43 sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0