File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ before_install:
2424script :
2525 - chmod u+x $TRAVIS_BUILD_DIR/tests/travis/script.sh
2626 - docker run -e TRAVIS_BRANCH -e BUILD_TYPE -e DISTRO -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:$DISTRO /pdalc/tests/travis/script.sh
27- - sonar-scanner
27+ - if ["$DISTRO" = "ubuntu"]; then sonar-scanner; fi
Original file line number Diff line number Diff line change 33gcc --version
44g++ --version
55
6- # Download and unzip the sonarcloud build wrapper
7- cd $CI_PROJECT_DIR
8- curl -LsS https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip
9- unzip build-wrapper-linux-x86.zip
10- export SONARCLOUD_DIR=$CI_PROJECT_DIR /build-wrapper-linux-x86
6+ if [" $DISTRO " = " ubuntu" ]; then
7+ # Download and unzip the sonarcloud build wrapper
8+ curl -LsS https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip
9+ unzip build-wrapper-linux-x86.zip
10+ export SONARCLOUD_DIR=$PWD /build-wrapper-linux-x86
11+ fi
1112
1213export CI_PROJECT_DIR=/pdalc
1314export CI_PROJECT_NAME=pdal-c
@@ -17,5 +18,10 @@ rm -rf "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1718mkdir -p " $CI_PROJECT_DIR /build/$TARGET_PLATFORM "
1819cd " $CI_PROJECT_DIR /build/$TARGET_PLATFORM "
1920cmake -G " Unix Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPDALC_GCC_PARAM_GGC_MIN_HEAPSIZE=8192 " $CI_PROJECT_DIR "
20- $SONARCLOUD_DIR /build-wrapper-linux-x86-64 --out-dir $CI_PROJECT_DIR /bw-output make
21+
22+ if [" $DISTRO " = " ubuntu" ]; then
23+ $SONARCLOUD_DIR /build-wrapper-linux-x86-64 --out-dir $CI_PROJECT_DIR /bw-output make
24+ else
25+ make
26+ fi
2127make coverage_pdalc
You can’t perform that action at this time.
0 commit comments