aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/travis/install.sh
blob: 830834d3e6a710ce95f10ce7ca96bac31416bbe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -ev
which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available

if [ "$BUILD_MODE" = "coverage" ]; then
    wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
    tar -xvf lcov_1.11.orig.tar.gz
    export PREFIX="/tmp"
    make -C lcov-1.11/ install

    pip install --user codecov
fi

if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$TARGETOS" != "ios" ]; then
    ./src/scripts/ci/travis/install_osx_packages.sh
fi