This is an automated email from the ASF dual-hosted git repository.

victorromero pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9ba63ef  Support for SonarQube Analysis on ASF's SonarCloud (#1893)
9ba63ef is described below

commit 9ba63ef7f7bc7a796587cc337fdfd3f9b8ecb611
Author: VĂ­ctor Romero <[email protected]>
AuthorDate: Tue Oct 19 13:46:38 2021 -0500

    Support for SonarQube Analysis on ASF's SonarCloud (#1893)
    
    * Support for SonarQube Analysis 
https://issues.apache.org/jira/browse/FINERACT-1409
    
    * Fix the addons entry
    
    * Fix LF
---
 .travis.yml  | 6 +++++-
 build.gradle | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index e159fa2..c716468 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,10 @@ addons:
     - curl
     - graphviz
     - gv
+  sonarcloud:
+    organization: "apache"
+    token:
+      secure: 
"Q2E9ijK+9+R6nkb9o2FQrKUiAozp0325mlGfM25rGV3mCRPyWR/lU8o48r2eaBEX8SEvMvXIO3XXD9SPyUX2+svLz0MOMdfZfNveg6jmcHNRjkzzBK0bMIIGbEH/YqJ+psl4nDmlDd6IK4685/1JSRUJLqeKKK2ulixm6PXcmwZWeKD6TjyXsW50zz3yYIOuROHzys/M6H05h1dZD3j6ztnRsjbr7SmqFEVWSRgEd/aAs+HZB9Fv1xN66csRoQUQKgzoBO9egAQcel65Av0Bf+pOQuzVDVyXNohZEYia02MCGlC6OFvtL7xIXGf/vo02RdnlN4Jnma6P37TaNrmpk2e+EGJaZHmL9cb98+Zc39uPb7qEZkMfDdKrW6QVRtScSuCJzpY58WRgTS0jLCxsDBAMfsrIvWbHntFZL9q5aEkFgecj0pg9u6WHxgA8cuPUY5QzHQo9fEUxNJHGJHQ2FkafLniqJ
 [...]
 
 # See https://issues.apache.org/jira/browse/FINERACT-937 for background re. 
what below is all about..
 # We basically remove the outdated OpenJDK 11.0.2 which Travis image grabbed 
from java.net in
@@ -74,6 +78,6 @@ script:
 # using "&&" instead of several "-" means that integrationTest does not run if 
test fails,
 # and Docker test does not run if integration test fails, which makes PR 
failure easier to understand.
 # @see 
https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
-  - ./gradlew -q --no-daemon --console=plain licenseMain licenseTest check 
build test --fail-fast doc  &&  sudo service mysql stop  &&  docker-compose 
build  &&  docker-compose up -d  &&  sleep 60s  && curl -f -k --retry 5 
--retry-connrefused --connect-timeout 30 --retry-delay 30 
https://localhost:8443/fineract-provider/actuator/health  &&  (( $(curl -f -k 
--retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 
https://localhost:8443/fineract-provider/actuator/info | wc --cha [...]
+  - ./gradlew -q --no-daemon --console=plain licenseMain licenseTest check 
build test --fail-fast doc sonarqube &&  sudo service mysql stop  &&  
docker-compose build  &&  docker-compose up -d  &&  sleep 60s  && curl -f -k 
--retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 
https://localhost:8443/fineract-provider/actuator/health  &&  (( $(curl -f -k 
--retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 
https://localhost:8443/fineract-provider/actuator/info | [...]
 # We stop the mysql system service when running the Docker test to avoid port 
3306 conflicts (unless we run the mysql in docker-compose on another port; req. 
FINERACT-773)
 # The fancy /actuator/info test makes sure that has more than 100 characters 
of JSON to test that the git.properties worked (see FINERACT-983)
diff --git a/build.gradle b/build.gradle
index d944680..cc2c169 100644
--- a/build.gradle
+++ b/build.gradle
@@ -69,6 +69,7 @@ plugins {
     id 'org.asciidoctor.jvm.revealjs' version '3.3.2' apply false
     id 'org.asciidoctor.jvm.gems' version '3.3.2' apply false
     id 'org.asciidoctor.kindlegen.base' version '3.2.0' apply false
+    id "org.sonarqube" version "3.3"
 }
 
 description = '''\
@@ -214,6 +215,14 @@ allprojects  {
         }
     }
 
+    // Configuration for the sonarqube plugin
+    // https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/
+    sonarqube {
+        properties {
+            property "sonar.projectKey", "apache_fineract"
+        }
+    }
+
     // Configuration for the spotless plugin
     // https://github.com/diffplug/spotless/tree/main/plugin-gradle
     spotless {

Reply via email to