You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/01/25 15:50:58 UTC
svn commit: r1852146 - /syncope/site/building.html
Author: ilgrosso
Date: Fri Jan 25 15:50:57 2019
New Revision: 1852146
URL: http://svn.apache.org/viewvc?rev=1852146&view=rev
Log:
Adding sonarcube build instructions
Modified:
syncope/site/building.html
Modified: syncope/site/building.html
URL: http://svn.apache.org/viewvc/syncope/site/building.html?rev=1852146&r1=1852145&r2=1852146&view=diff
==============================================================================
--- syncope/site/building.html (original)
+++ syncope/site/building.html Fri Jan 25 15:50:57 2019
@@ -8,7 +8,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Apache Syncope Documentation Team" />
- <meta name="Date-Revision-yyyymmdd" content="20190117" />
+ <meta name="Date-Revision-yyyymmdd" content="20190125" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Syncope – Building</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.5.min.css" />
@@ -262,7 +262,9 @@
<ul class="toc">
<li><a href="#Prerequisites">Prerequisites</a></li>
-<li><a href="#Building_Syncope">Building Syncope</a></li>
+<li><a href="#Building_Syncope">Building Syncope</a>
+<ul>
+<li><a href="#Code_analysis">Code analysis</a></li></ul></li>
<li><a href="#Building_documentation">Building documentation</a></li>
<li><a href="#More_build_profiles">More build profiles</a>
<ul>
@@ -354,6 +356,20 @@
</p>
<div class="source"><pre class="prettyprint">$ mvn -PskipTests,all,docker</pre></div>
+
+
+<div class="section">
+<h3><a name="Code_analysis"></a>Code analysis</h3>
+ After build, it is possible to examine code quality by submitting the generated reports to
+ a <a class="externalLink" href="https://www.sonarqube.org/">SonarQube</a> instance.
+ Various installation methods are available, but the quicker seems to be via Docker:
+
+<div class="source"><pre class="prettyprint">$ docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube</pre></div>
+ Once SonarQube is up and runninig, submit the reports as follows:
+
+<div class="source"><pre class="prettyprint">$ mvn sonar:sonar</pre></div>
+ At the end, browse http://localhost:9000/dashboard?id=org.apache.syncope%3Asyncope to see results.
+ </div>
</div>