Skip to content

Commit

Permalink
add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
tuohai666 committed Sep 1, 2020
1 parent 755975d commit 823d119
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
language: java

jdk:
- oraclejdk9
- openjdk8

install: true

cache:
directories:
- "$HOME/.m2"

before_script:
- echo "MAVEN_OPTS='-Xmx1024m -XX:MaxMetaspaceSize=256m'" > ~/.mavenrc

script:
- travis_wait 30 mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura -Dmaven.javadoc.skip=true

after_success:
- bash <(curl -s https://codecov.io/bash)

after_failure:
- echo "build failed!"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [Soul](https://dromara.org)

[![Build Status](https://api.travis-ci.org/dromara/soul.svg?branch=master&status=created)](https://travis-ci.org/github/dromara/soul)
[![codecov](https://codecov.io/gh/dromara/soul/branch/master/graph/badge.svg)](https://codecov.io/gh/dromara/soul)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4367ffad5b434b7e8078b3a68cc6398d)](https://www.codacy.com/app/yu199195/soul?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Dromara/soul&amp;utm_campaign=Badge_Grade)
[![Total lines](https://tokei.rs/b1/github/Dromara/soul?category=lines)](https://github.com/Dromara/soul)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?label=license)](https://github.com/Dromara/soul/blob/master/LICENSE)
Expand Down
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
<okhttp.version>3.7.0</okhttp.version>
<mapstruct.version>1.3.1.Final</mapstruct.version>
<prometheus-java-client.version>0.6.0</prometheus-java-client.version>
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -428,6 +429,35 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<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>
</check>
<aggregate>true</aggregate>
<encoding>${project.build.sourceEncoding}</encoding>
<quiet>true</quiet>
<format>xml</format>
<instrumentation>
<ignoreTrivial>true</ignoreTrivial>
<ignoreMethodAnnotations>
<ignoreMethodAnnotation>lombok.Generated</ignoreMethodAnnotation>
</ignoreMethodAnnotations>
<excludes>
<exclude>org/dromara/soul/**/*Test.class</exclude>
</excludes>
</instrumentation>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 823d119

Please sign in to comment.