You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/16 04:11:12 UTC

[iotdb] 02/04: Create sonar_and_coverall.yml

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

hxd pushed a commit to branch rel/0.11
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit dab6f23382652f157d40b70a24b7b47fd4642fea
Author: Xiangdong Huang <hx...@apache.org>
AuthorDate: Sun Nov 15 10:32:29 2020 +0800

    Create sonar_and_coverall.yml
    
    try using token
---
 .github/workflows/sonar_and_coverall.yml | 48 ++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/.github/workflows/sonar_and_coverall.yml b/.github/workflows/sonar_and_coverall.yml
new file mode 100644
index 0000000..f91588d
--- /dev/null
+++ b/.github/workflows/sonar_and_coverall.yml
@@ -0,0 +1,48 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Sonar And Coverall with Maven
+
+on:
+  push:
+    branches: 
+      - master
+      - 'rel/*'
+    paths-ignore:
+      - 'docs/**'
+  pull_request:
+    branches: 
+      - master
+      - 'rel/*'
+      - cluster_new
+    paths-ignore:
+      - 'docs/**'
+
+jobs:
+  coveralls:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up JDK 11.0.x
+        uses: actions/setup-java@v1
+        with:
+          java-version: 11.0.x
+      - name: Cache Maven packages
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2
+          key: code-coverage-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Run Integration Test
+        run: mvn -B post-integration-test -Pcode-coverage -Pcoveralls -pl '!distribution' -am
+      - name: Code Coverage (Coveralls) Test
+        run: |
+          mvn -B coveralls:report \
+          --no-transfer-progress \
+          -DserviceName=github \
+          -D branch=$BRANCH_NAME \
+          -D pullRequest=$PR_NUMBER \
+          -D repoToken=MiEOlMMMNQhLNV4yayn7rRUPyVSQzbzbZ \
+          -pl tsfile,server,jdbc,cli,session,hive-connector,flink-iotdb-connector,flink-tsfile-connector