build: add sonarqube

This commit is contained in:
Skylot
2017-05-27 12:05:27 +03:00
parent 648f0edc79
commit 7b9e5fe99f
4 changed files with 19 additions and 10 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ build:
stage: build
script:
- sed -i " 1 s/.*/&-b${CI_JOB_ID}/" version
- ./gradlew -g /cache/.gradle clean build jacocoTestReport dist
- cat version
- ./gradlew -g /cache/.gradle clean build jacocoTestReport
- ./gradlew -g /cache/.gradle clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN
- ./gradlew -g /cache/.gradle clean dist
artifacts:
paths:
- build/jadx*.zip