travis: Enable caching for sonarcloud scan
This commit is contained in:
@@ -41,6 +41,9 @@ jobs:
|
|||||||
if: type = push AND env(SONAR_TOKEN) IS present
|
if: type = push AND env(SONAR_TOKEN) IS present
|
||||||
git:
|
git:
|
||||||
depth: false
|
depth: false
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.sonar-cache
|
||||||
addons:
|
addons:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
organization: "strongswan"
|
organization: "strongswan"
|
||||||
|
|||||||
@@ -433,6 +433,8 @@ sonarcloud)
|
|||||||
-Dsonar.projectVersion=$(git describe)+${TRAVIS_BUILD_NUMBER} \
|
-Dsonar.projectVersion=$(git describe)+${TRAVIS_BUILD_NUMBER} \
|
||||||
-Dsonar.sources=. \
|
-Dsonar.sources=. \
|
||||||
-Dsonar.cfamily.threads=2 \
|
-Dsonar.cfamily.threads=2 \
|
||||||
|
-Dsonar.cfamily.cache.enabled=true \
|
||||||
|
-Dsonar.cfamily.cache.path=$HOME/.sonar-cache \
|
||||||
-Dsonar.cfamily.build-wrapper-output=bw-output || exit $?
|
-Dsonar.cfamily.build-wrapper-output=bw-output || exit $?
|
||||||
rm -r bw-output .scannerwork
|
rm -r bw-output .scannerwork
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user