aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/travis/install.sh
blob: 447049f60c416ab02e0486d4571d5fb4107df1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
    gem install coveralls-lcov
fi

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