]> git.proxmox.com Git - ovs.git/blame - .travis/linux-prepare.sh
Remove dependency on python3-six
[ovs.git] / .travis / linux-prepare.sh
CommitLineData
826bc7b6
TG
1#!/bin/bash
2
fe70f381
BP
3set -ev
4
48035edb
BP
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.
879e8238 10git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git
46124c18 11cd sparse
46124c18
IM
12make -j4 HAVE_LLVM= install
13cd ..
ac1432a4 14
0c4d144a 15pip3 install --disable-pip-version-check --user flake8 hacking
24e69708 16pip3 install --user --upgrade docutils
eab80041
WT
17
18if [ "$M32" ]; then
bdfab593 19 # Installing 32-bit libraries.
eab80041
WT
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.
bdfab593
LY
22 sudo apt-get install -y \
23 libunwind-dev:i386 libunbound-dev:i386 gcc-multilib
eab80041 24fi
5ae6f976
IM
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.
29sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0