Skip to content

Commit 13e7792

Browse files
committed
Download, unpack, and call sonarcloud build wrapper in travis build script
1 parent d537d74 commit 13e7792

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/travis/script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
gcc --version
44
g++ --version
55

6+
# Download and unzip the sonarcloud build wrapper
7+
curl -LsS https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip
8+
unzip build-wrapper-linux-x86.zip
9+
export SONARCLOUD_DIR=$PWD/build-wrapper-linux-x86
10+
611
export CI_PROJECT_DIR=/pdalc
712
export CI_PROJECT_NAME=pdal-c
813
export TARGET_PLATFORM=$DISTRO-`uname -m`-$BUILD_TYPE
@@ -11,5 +16,5 @@ rm -rf "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1116
mkdir -p "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1217
cd "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1318
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPDALC_GCC_PARAM_GGC_MIN_HEAPSIZE=8192 "$CI_PROJECT_DIR"
14-
make
19+
$SONARCLOUD_DIR/build-wrapper-linux-x86-64 --out-dir $CI_PROJECT_DIR/bw-output make
1520
make coverage_pdalc

0 commit comments

Comments
 (0)