You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2018/01/26 09:33:07 UTC

kylin git commit: KYLIN-3200 Enable SonarCloud

Repository: kylin
Updated Branches:
  refs/heads/KYLIN-3200 [created] c94480be6


KYLIN-3200 Enable SonarCloud


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/c94480be
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/c94480be
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/c94480be

Branch: refs/heads/KYLIN-3200
Commit: c94480be6f73d510002aa76f21a5f4637cff4309
Parents: a41a7e7
Author: Billy Liu <bi...@apache.org>
Authored: Fri Jan 26 17:32:56 2018 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Fri Jan 26 17:32:56 2018 +0800

----------------------------------------------------------------------
 .travis.yml | 13 ++++++++-----
 README.md   |  4 ++++
 2 files changed, 12 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c94480be/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index ee4b874..7e59cce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,17 +16,20 @@
 # limitations under the License.
 #
 language: java
-
+addons:
+  sonarcloud:
+    organization: "kylin"
+    token:
+      secure: "c918989d018ae3af899798716c35f4fe125296a4"
 jdk:
   - oraclejdk8
 
+script:
+  - mvn clean --quite org.jacoco:jacoco-maven-plugin:prepare-agent test sonar:sonar
+
 notification:
   email:
     recipients:
       - dev@kylin.apache.org
     on_failure: always
 
-#branches:
-#  only:
-#    - master
-

http://git-wip-us.apache.org/repos/asf/kylin/blob/c94480be/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index dd66cb9..54f211a 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,10 @@ Apache Kylin
 [![Build Status](https://travis-ci.org/apache/kylin.svg?branch=master)](https://travis-ci.org/apache/kylin)
 [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
 [![Codacy Badge](https://api.codacy.com/project/badge/Grade/74f0139786cd4e8a8ce69bb0c17c2e71)](https://www.codacy.com/app/kyligence-git/kylin?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=apache/kylin&amp;utm_campaign=Badge_Grade)
+[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=org.apache.kylin%3Akylin)](https://sonarcloud.io/dashboard/index/org.apache.kylin%3Akylin)
+[![SonarCloud Coverage](https://sonarcloud.io/api/badges/measure?key=org.apache.kylin%3Akylin&metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=org.apache.kylin%3Akylin)
+[![SonarCloud Bugs](https://sonarcloud.io/api/badges/measure?key=org.apache.kylin%3Akylin&metric=bugs)](https://sonarcloud.io/component_measures/metric/reliability_rating/list?id=org.apache.kylin%3Akylin)
+[![SonarCloud Vulnerabilities](https://sonarcloud.io/api/badges/measure?key=org.apache.kylin%3Akylin&metric=vulnerabilities)](https://sonarcloud.io/component_measures/metric/security_rating/list?id=org.apache.kylin%3Akylin)
 
 > Extreme OLAP Engine for Big Data