You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/02/02 03:32:43 UTC

[iotdb] branch master updated: Add a badge of code quality & Upgrade JDK of sonar and coverall from 8 to 11(#2610)

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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new ceb9756  Add a badge of code quality & Upgrade JDK of sonar and coverall from 8 to 11(#2610)
ceb9756 is described below

commit ceb9756c90a53311f6fd7bceac3d0cac29820fcf
Author: Benedict Jin <as...@apache.org>
AuthorDate: Tue Feb 2 11:32:19 2021 +0800

    Add a badge of code quality & Upgrade JDK of sonar and coverall from 8 to 11(#2610)
---
 .github/workflows/main-linux.yml | 5 ++---
 README.md                        | 1 +
 README_ZH.md                     | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/main-linux.yml b/.github/workflows/main-linux.yml
index e26dbe7..162cbca 100644
--- a/.github/workflows/main-linux.yml
+++ b/.github/workflows/main-linux.yml
@@ -46,7 +46,7 @@ jobs:
       - name: IT/UT Test
         run:  mvn -B clean post-integration-test -Dtest.port.closed=true -Pcode-coverage
       - name: Code Coverage (Coveralls)
-        if: ${{ success() && matrix.java == '8'}}
+        if: ${{ success() && matrix.java == '11'}}
         run: |
           mvn -B post-integration-test -Pcode-coverage -pl code-coverage
           mvn -B coveralls:report \
@@ -56,8 +56,7 @@ jobs:
           -DrepoToken=MiEOlMMMNQhLNV4yayn7rRUPyVSQzbzbZ \
           -Pcode-coverage
       - name: SonarCloud Report
-        #jdk8 is faster to run UT/IT
-        if: ${{ success() &&  matrix.java == '8'}}
+        if: ${{ success() &&  matrix.java == '11'}}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: '2d9c9a58d772a57806a168e00181e3e19f2763dc'
diff --git a/README.md b/README.md
index 40d4b70..8fbab3c 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,7 @@
 ![](https://img.shields.io/github/downloads/apache/iotdb/total.svg)
 ![](https://img.shields.io/badge/platform-win10%20%7C%20macox%20%7C%20linux-yellow.svg)
 ![](https://img.shields.io/badge/java--language-1.8-blue.svg)
+[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/iotdb.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/iotdb/context:java)
 [![IoTDB Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=iotdb-website)](https://iotdb.apache.org/)
 [![Maven Version](https://maven-badges.herokuapp.com/maven-central/org.apache.iotdb/iotdb-parent/badge.svg)](http://search.maven.org/#search|gav|1|g:"org.apache.iotdb")
 [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/apache/iotdb) 
diff --git a/README_ZH.md b/README_ZH.md
index 6d792ba..0e30f66 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -29,6 +29,7 @@
 ![](https://img.shields.io/github/downloads/apache/iotdb/total.svg)
 ![](https://img.shields.io/badge/platform-win10%20%7C%20macox%20%7C%20linux-yellow.svg)
 ![](https://img.shields.io/badge/java--language-1.8-blue.svg)
+[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/iotdb.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/iotdb/context:java)
 [![IoTDB Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=iotdb-website)](https://iotdb.apache.org/)
 [![Maven Version](https://maven-badges.herokuapp.com/maven-central/org.apache.iotdb/iotdb-parent/badge.svg)](http://search.maven.org/#search|gav|1|g:"org.apache.iotdb")