#!/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.12.orig.tar.gz tar -xvf lcov_1.12.orig.tar.gz export PREFIX="/tmp" make -C lcov-1.12/ install pip install --user coverage pip install --user codecov fi if [ "$BUILD_MODE" = "sonarqube" ]; then curl -LsS https://sonarqube.com/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip unzip build-wrapper-linux-x86.zip fi if [ "$TRAVIS_OS_NAME" = "osx" ]; then # Workaround for https://github.com/Homebrew/homebrew/issues/42553 brew update || brew update brew install ccache if [ "$TARGETOS" = "native" ]; then brew install xz brew install python # python2 brew install python3 # Boost 1.58 is installed on Travis OS X images # brew install boost fi fi