]> git.ipfire.org Git - thirdparty/lldpd.git/blame - tests/ci/install.sh
ci: don't install jansson
[thirdparty/lldpd.git] / tests / ci / install.sh
CommitLineData
ed9e6f41
VB
1#!/bin/sh
2
3set -e
4
5case "$(uname -s)" in
6 Darwin)
7 brew update
d5c6300f
VB
8 # Workaround a bug in Travis:
9 # https://github.com/Homebrew/legacy-homebrew/issues/43874
10 brew uninstall libtool
759da342 11 brew install libtool libxml2 check
ed9e6f41 12 ;;
62f9ab5e 13 Linux)
4f9d887a
VB
14 # We prefer gcc-5
15 [ $CC != gcc ] || \
16 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
ed9e6f41
VB
17 sudo apt-get -qqy update
18 sudo apt-get -qqy install \
19 automake autoconf libtool pkg-config \
06987a24 20 libsnmp-dev libxml2-dev \
ed9e6f41 21 libevent-dev libreadline-dev libbsd-dev \
2063390b
VB
22 check libc6-dbg libevent-dbg libseccomp-dev \
23 libpcap-dev
4f9d887a
VB
24 [ $CC != gcc ] || \
25 sudo apt-get -qqy install gcc-5
62f9ab5e
VB
26 # For integration tests
27 sudo -H $(which python3) -m pip install -r tests/integration/requirements.txt
ed9e6f41
VB
28 ;;
29esac