]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
travis: Use two threads to analyze C code with SonarQube
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Nov 2018 11:08:43 +0000 (12:08 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Nov 2018 13:37:56 +0000 (14:37 +0100)
On Nov 12, the scanner was updated and now takes a lot more time (about
3 times as much).  Using two threads reduces it a bit (by about 25%).
Using even more threads doesn't help or even increases the time again.

scripts/test.sh

index 8f573cef3b6067c9cfb53bca35cfc035d0c4999d..893dcb64991dafb4184f81f7388049508ee5d8a8 100755 (executable)
@@ -284,6 +284,7 @@ sonarcloud)
                -Dsonar.projectKey=strongswan \
                -Dsonar.projectVersion=$(git describe)+${TRAVIS_BUILD_NUMBER} \
                -Dsonar.sources=. \
+               -Dsonar.cfamily.threads=2 \
                -Dsonar.cfamily.build-wrapper-output=bw-output || exit $?
        ;;
 *)