Skip to content

Commit

Permalink
Use mvnw command to unify the maven version (apache#7684)
Browse files Browse the repository at this point in the history
* use mvnw command to unify the maven version

* add codecov.yml

* add codecov to rat exclude

* Update pom.xml
  • Loading branch information
lovepoem authored Oct 3, 2020
1 parent 3e42c32 commit 3080b2a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
# pull-requests only
patch:
default:
threshold: 0.1%
ignore:
- "examples/.*"
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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 -->
Expand Down

0 comments on commit 3080b2a

Please sign in to comment.