blob: 387ccef6c5cb873f9aeed54e3b1fc8c0485f67ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/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" ] && [ "$TARGETOS" != "ios" ]; then
# Workaround for https://github.com/Homebrew/homebrew/issues/42553
brew update || brew update
brew install xz
brew install python # python2
brew install python3
# Boost 1.58 is installed on Travis OS X images
# brew install boost
fi
|