Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
configure coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwawi committed Nov 17, 2015
1 parent 7d63ecc commit 97ff23a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
13 changes: 0 additions & 13 deletions apollo-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.4.201502262128</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>check</id>
<goals>
Expand Down
13 changes: 0 additions & 13 deletions apollo-route/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.4.201502262128</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>check</id>
<goals>
Expand Down
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ dependencies:
# since dependency:resolve fails for multi-module builds
# our best option (that I know of) is to just do a compile
override:
- mvn -Pcoverage -Pmissinglink --fail-never dependency:go-offline compiler:compile || true
- mvn -Pcoverage -Pmissinglink --fail-never dependency:go-offline clean compile || true

test:
override:
- mvn -Pcoverage -Pmissinglink verify
post:
- mvn org.eluder.coveralls:coveralls-maven-plugin:report -Dcoveralls.token=$COVERALLS_TOKEN
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

Expand Down
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,15 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.4.201502262128</version>
<version>0.7.5.201505241946</version>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.0.0</version>
<configuration>
<repoToken>${coveralls.token}</repoToken>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -220,6 +228,11 @@
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
Expand Down Expand Up @@ -259,6 +272,13 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/AutoValue_*</exclude>
<exclude>**/LoadedConfigBuilder*</exclude>
<exclude>**/MetaInfoBuilder*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
Expand Down

0 comments on commit 97ff23a

Please sign in to comment.