diff --git a/.travis.yml b/.travis.yml index d8b7bc8a4..76aeacf7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,3 +37,5 @@ script: # https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received - while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done & - scripts/run_travis_tests.sh $TEST_SUITE +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/hudi-hadoop-mr/pom.xml b/hudi-hadoop-mr/pom.xml index a3cac3025..b6dc87d0f 100644 --- a/hudi-hadoop-mr/pom.xml +++ b/hudi-hadoop-mr/pom.xml @@ -114,6 +114,10 @@ org.apache.rat apache-rat-plugin + + org.jacoco + jacoco-maven-plugin + diff --git a/hudi-hive/pom.xml b/hudi-hive/pom.xml index f0adb632a..ea76c4c71 100644 --- a/hudi-hive/pom.xml +++ b/hudi-hive/pom.xml @@ -202,6 +202,10 @@ + + org.jacoco + jacoco-maven-plugin + diff --git a/hudi-spark/pom.xml b/hudi-spark/pom.xml index 511cd674a..4ba864e62 100644 --- a/hudi-spark/pom.xml +++ b/hudi-spark/pom.xml @@ -144,6 +144,10 @@ org.scalastyle scalastyle-maven-plugin + + org.jacoco + jacoco-maven-plugin + diff --git a/hudi-timeline-service/pom.xml b/hudi-timeline-service/pom.xml index 1f5292a15..2d09d4c65 100644 --- a/hudi-timeline-service/pom.xml +++ b/hudi-timeline-service/pom.xml @@ -55,6 +55,10 @@ org.apache.rat apache-rat-plugin + + org.jacoco + jacoco-maven-plugin + diff --git a/packaging/hudi-spark-bundle/pom.xml b/packaging/hudi-spark-bundle/pom.xml index 754b5cf8b..ddfb7e5a4 100644 --- a/packaging/hudi-spark-bundle/pom.xml +++ b/packaging/hudi-spark-bundle/pom.xml @@ -155,6 +155,24 @@ + + + org.jacoco + jacoco-maven-plugin + + + post-unit-test + test + + report-aggregate + + + + ${project.reporting.outputDirectory}/jacoco-ut + + + + @@ -193,6 +211,11 @@ hudi-spark_${scala.binary.version} ${project.version} + + org.apache.hudi + hudi-timeline-service + ${project.version} + diff --git a/pom.xml b/pom.xml index 6e6213207..e28100001 100644 --- a/pom.xml +++ b/pom.xml @@ -115,6 +115,7 @@ provided -Xmx1024m -XX:MaxPermSize=256m + 0.8.5 @@ -264,7 +265,7 @@ org.jacoco jacoco-maven-plugin - 0.7.8 + ${jacoco.version} - ${project.build.directory}/coverage-reports/jacoco-ut.exec - - ${project.build.directory}/coverage-reports/jacoco-ut.exec ${project.reporting.outputDirectory}/jacoco-ut