]>
Commit | Line | Data |
---|---|---|
826bc7b6 TG |
1 | #!/bin/bash |
2 | ||
fe70f381 BP |
3 | set -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 | 10 | git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git |
46124c18 | 11 | cd sparse |
46124c18 IM |
12 | make -j4 HAVE_LLVM= install |
13 | cd .. | |
ac1432a4 | 14 | |
0c4d144a | 15 | pip3 install --disable-pip-version-check --user flake8 hacking |
24e69708 | 16 | pip3 install --user --upgrade docutils |
eab80041 WT |
17 | |
18 | if [ "$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 | 24 | fi |
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. | |
29 | sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 |