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

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


The following commit(s) were added to refs/heads/code_coverage_v2 by this push:
     new 0812dc32 try
0812dc32 is described below

commit 0812dc322feda00a2967bb81d1679ef57e3cf12a
Author: HTHou <[email protected]>
AuthorDate: Thu Aug 1 14:23:57 2024 +0800

    try
---
 .github/workflows/code-coverage.yml         |  7 ++-----
 code-coverage/copy-code-coverage-sources.sh | 20 ++++++++++----------
 2 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/code-coverage.yml 
b/.github/workflows/code-coverage.yml
index c56b8f6b..591dbc88 100644
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -28,14 +28,11 @@ jobs:
       - name: Test
         run: |
           sudo apt-get install lcov
-          ./mvnw -B -P with-cpp,with-code-coverage clean verify
-          ls cpp/target/build/test
+          ./mvnw -B -P with-java,with-cpp,with-code-coverage clean verify
           lcov --capture --directory cpp/target/build/test --output-file 
cpp/target/build/test/coverage.info
           genhtml cpp/target/build/test/coverage.info --output-directory 
cpp/target/build/test/coverage_report
-          ls cpp/target/build/test
-          ls cpp/target/build/test/coverage_report
       - name: Upload coverage reports to codecov
         uses: codecov/codecov-action@v4
         with:
           token: ${{ secrets.CODECOV_TOKEN }}
-          files: ./cpp/target/build/test/coverage_report/index.html
+          files: 
./code-coverage/target/jacoco-merged-reports/jacoco.xml,./cpp/target/build/test/coverage_report/index.html
diff --git a/code-coverage/copy-code-coverage-sources.sh 
b/code-coverage/copy-code-coverage-sources.sh
index 7c6361fe..19c24fd1 100755
--- a/code-coverage/copy-code-coverage-sources.sh
+++ b/code-coverage/copy-code-coverage-sources.sh
@@ -18,14 +18,14 @@
 # under the License.
 #
 
-#for file in ../java/*/target/*.exec
-#do
-#   cp $file ./target/
-#done
-#
-#for file in ../java/*/target/classes
-#do
-#   echo "copy from" ${file}
-#   cp -r $file ./target/
-#done
+for file in ../java/*/target/*.exec
+do
+   cp $file ./target/
+done
+
+for file in ../java/*/target/classes
+do
+   echo "copy from" ${file}
+   cp -r $file ./target/
+done
 

Reply via email to