From 3080b2a9999d35ab033226c4b12549782eeb961b Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Sat, 3 Oct 2020 11:08:27 +0800 Subject: [PATCH] Use mvnw command to unify the maven version (#7684) * use mvnw command to unify the maven version * add codecov.yml * add codecov to rat exclude * Update pom.xml --- .codecov.yml | 8 ++++++++ .travis.yml | 3 +-- pom.xml | 15 ++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000000000..fb552d4d179c7 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + # pull-requests only + patch: + default: + threshold: 0.1% +ignore: + - "examples/.*" diff --git a/.travis.yml b/.travis.yml index 855ec5ba0bd52..ab511a22e3500 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,9 @@ cache: before_script: - echo "MAVEN_OPTS='-Xmx1024m -XX:MaxMetaspaceSize=256m'" > ~/.mavenrc - - rm -rf $HOME/.m2/repository/org/apache/shardingsphere script: - - travis_wait 30 mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura coveralls:report -DrepoToken="${COVERALLS_REPO_TOKEN}" -Dmaven.javadoc.skip=true + - travis_wait 30 ./mvnw --batch-mode --no-transfer-progress clean install cobertura:cobertura -Dmaven.javadoc.skip=true after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/pom.xml b/pom.xml index 28886255955a5..67fa3364dc53c 100644 --- a/pom.xml +++ b/pom.xml @@ -748,13 +748,13 @@ ${cobertura-maven-plugin.version} - - - - - - - + 70 + 70 + true + 70 + 70 + 70 + 70 true ${project.build.sourceEncoding} @@ -817,6 +817,7 @@ **/.git/** **/.travis.yml + **/.codecov.yml **/.mvn/jvm.config **/.mvn/wrapper/maven-wrapper.properties