From 116f50ee82b280e141b9bc47841e5742bcecc3e7 Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Sun, 29 Sep 2019 07:41:04 +0800 Subject: [PATCH] Try to bring coverall test coverage comments back (#3503) * Try to bring coverall test coverage comments back * Remove suspicious rule * Sync * Try checkout submodule * Update labeler.yml * Update labeler.yml * Update labeler.yml * Update labeler.yml * Rebase * Remove jmh annotation processor * Update README.md * Replace with placeholder and remove Coverall badge in README * Exclude generated classes from coverage analysis --- Jenkinsfile | 2 +- pom.xml | 47 ++++++++++++++++++++++++++--------------------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 86d4fa286..673bc6639 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -63,7 +63,7 @@ pipeline { stage('Test & Report') { steps { - sh './mvnw -P"agent,backend,ui,dist,CI-with-IT" org.jacoco:jacoco-maven-plugin:0.8.3:prepare-agent clean install org.jacoco:jacoco-maven-plugin:0.8.3:report' + sh './mvnw -P"agent,backend,ui,dist,CI-with-IT" -DrepoToken=${COVERALLS_REPO_TOKEN} -DpullRequest=${ghprbPullLink} clean cobertura:cobertura verify coveralls:report install' sh './mvnw javadoc:javadoc -Dmaven.test.skip=true' } } diff --git a/pom.xml b/pom.xml index f346a0db1..7ae2edb55 100755 --- a/pom.xml +++ b/pom.xml @@ -204,9 +204,9 @@ 2.5 4.3.0 3.1.0 - 0.8.3 1.21 1.5 + 2.7 @@ -237,12 +237,6 @@ ${jmh.version} test - - org.openjdk.jmh - jmh-generator-annprocess - ${jmh.version} - test - @@ -479,25 +473,12 @@ coveralls-maven-plugin ${coveralls-maven-plugin.version} - xFwR2GqmxcMxV7tGEpW2NfwIrbCD4cQCS + ${COVERALLS_REPO_TOKEN} ${project.build.sourceDirectory} - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - prepare-agent - - prepare-agent - - - - maven-checkstyle-plugin ${maven-checkstyle-plugin.version} @@ -518,6 +499,7 @@ **/*.xml + **/target/generated-test-sources/**, org/apache/skywalking/apm/network/register/v2/**/*.java, org/apache/skywalking/apm/network/common/**/*.java, org/apache/skywalking/apm/network/servicemesh/**/*.java, @@ -538,6 +520,29 @@ + + org.codehaus.mojo + cobertura-maven-plugin + ${cobertura-maven-plugin.version} + + + true + ${project.build.sourceEncoding} + true + xml + + true + + lombok.Generated + + + org/apache/skywalking/**/*Test.class + org/apache/skywalking/**/Test*.class + **/generated-sources/** + + + +