aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/travis/install.sh
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-08-04 19:25:28 +0200
committerDaniel Neus <[email protected]>2016-08-18 13:21:37 +0200
commit5f3a96204a4888367af45828bfe05cc05dd6ef95 (patch)
treec3bd9d507fc8910bd723df4b03b63f94d6f4b142 /src/scripts/ci/travis/install.sh
parentfedaf80bad502a2f0c85b7acd0e2ead37c6c8ced (diff)
SonarQube integration / Travis CI changes
Travis CI changes: - Run SonarQube analysis for commits on master and in pull requests - Upgrade Travis CI build image to Ubuntu 14.04 and use standard system toolchain - Update lcov to 1.12 for coverage - Set git clone depth to 5 commits - Use 'builtin' ccache Travis CI addon - Add SonarQube badge to readme - No longer necessary to overwrite CXX variable in build.sh when using gcc
Diffstat (limited to 'src/scripts/ci/travis/install.sh')
-rwxr-xr-xsrc/scripts/ci/travis/install.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/scripts/ci/travis/install.sh b/src/scripts/ci/travis/install.sh
index 0e49ad363..387ccef6c 100755
--- a/src/scripts/ci/travis/install.sh
+++ b/src/scripts/ci/travis/install.sh
@@ -3,16 +3,21 @@ 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
+ 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.11/ install
+ 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