]> git.proxmox.com Git - ovs.git/blob - .travis/linux-prepare.sh
13390afc016cfba8d8d8c3766639c5e74c091f3f
[ovs.git] / .travis / linux-prepare.sh
1 #!/bin/bash
2
3 set -ev
4
5 # Build and install sparse.
6 #
7 # Explicitly disable sparse support for llvm because some travis
8 # environments claim to have LLVM (llvm-config exists and works) but
9 # linking against it fails.
10 git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git
11 cd sparse
12 make -j4 HAVE_LLVM= install
13 cd ..
14
15 pip3 install --disable-pip-version-check --user six flake8 hacking
16 pip3 install --user --upgrade docutils
17
18 if [ "$M32" ]; then
19 # Installing 32-bit libraries.
20 # 32-bit and 64-bit libunwind can not be installed at the same time.
21 # This will remove the 64-bit libunwind and install 32-bit version.
22 sudo apt-get install -y \
23 libunwind-dev:i386 libunbound-dev:i386 gcc-multilib
24 fi
25
26 # IPv6 is supported by kernel but disabled in TravisCI images:
27 # https://github.com/travis-ci/travis-ci/issues/8891
28 # Enable it to avoid skipping of IPv6 related tests.
29 sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0