Skip to content

Commit

Permalink
测试覆盖率报告
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyanghe committed Sep 8, 2019
1 parent c93d7d9 commit cc78787
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 28 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ jdk:
- openjdk8
- openjdk11

after_success:
- chmod -R 777 ./travis/after_success.sh
- ./travis/after_success.sh

35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,41 @@
<encoding>utf-8</encoding>
</configuration>
</plugin>

<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.1.0</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/parser/JJTParserState.class</exclude>
<exclude>**/parser/ParseException.class</exclude>
<exclude>**/parser/Parser.class</exclude>
<exclude>**/parser/ParserTokenManager.class</exclude>
<exclude>**/parser/SimpleCharStream.class</exclude>
<exclude>**/parser/SimpleNode.class</exclude>
<exclude>**/parser/Token.class</exclude>
<exclude>**/parser/TokenMgrError.class</exclude>
<exclude>**/util/logging/**</exclude>
<exclude>**/stat/atomic/**</exclude>
<exclude>**/exception/**</exclude>
<exclude>**/mango/plugin/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
VER=`java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q'`
echo "Java detected: ${VER}"

if [ $VER == "18" ]; then
if [ $VER == "11" ]; then
mvn clean test jacoco:report coveralls:report
fi
27 changes: 0 additions & 27 deletions travis/install.sh

This file was deleted.

0 comments on commit cc78787

Please sign in to comment.