You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/03 03:08:43 UTC
[shardingsphere] branch master updated: Use mvnw command to unify
the maven version (#7684)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3080b2a Use mvnw command to unify the maven version (#7684)
3080b2a is described below
commit 3080b2a9999d35ab033226c4b12549782eeb961b
Author: Xin Wang <xi...@gmail.com>
AuthorDate: Sat Oct 3 11:08:27 2020 +0800
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(-)
diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644
index 0000000..fb552d4
--- /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 855ec5b..ab511a2 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 2888625..67fa336 100644
--- a/pom.xml
+++ b/pom.xml
@@ -748,13 +748,13 @@
<version>${cobertura-maven-plugin.version}</version>
<configuration>
<check>
- <!--<branchRate>85</branchRate>-->
- <!--<lineRate>85</lineRate>-->
- <!--<haltOnFailure>true</haltOnFailure>-->
- <!--<totalBranchRate>85</totalBranchRate>-->
- <!--<totalLineRate>85</totalLineRate>-->
- <!--<packageLineRate>85</packageLineRate>-->
- <!--<packageBranchRate>85</packageBranchRate>-->
+ <branchRate>70</branchRate>
+ <lineRate>70</lineRate>
+ <haltOnFailure>true</haltOnFailure>
+ <totalBranchRate>70</totalBranchRate>
+ <totalLineRate>70</totalLineRate>
+ <packageLineRate>70</packageLineRate>
+ <packageBranchRate>70</packageBranchRate>
</check>
<aggregate>true</aggregate>
<encoding>${project.build.sourceEncoding}</encoding>
@@ -817,6 +817,7 @@
<exclude>**/.git/**</exclude>
<!-- CI files -->
<exclude>**/.travis.yml</exclude>
+ <exclude>**/.codecov.yml</exclude>
<exclude>**/.mvn/jvm.config</exclude>
<exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude>
<!-- GitHub files -->