Skip to content

Commit

Permalink
Use codecov for coverage. (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast authored and lesv committed Apr 26, 2016
1 parent 9cae883 commit f8be12a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ before_install:
install: true
script: ./travis.sh
after_success:
- mvn clean cobertura:cobertura coveralls:report
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# java-docs-samples

[![Build Status](https://travis-ci.org/GoogleCloudPlatform/java-docs-samples.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/java-docs-samples)
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/java-docs-samples/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/java-docs-samples?branch=master)
[![Coverage Status](https://codecov.io/gh/GoogleCloudPlatform/java-docs-samples/branch/master/graph/badge.svg)](https://codecov.io/gh/GoogleCloudPlatform/java-docs-samples)

This is a repository that contains java code snippets on [Cloud Platform Documentation](https://cloud.google.com/docs/).

45 changes: 19 additions & 26 deletions java-repo-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,25 @@ limitations under the License.
<execution><goals><goal>check</goal></goals></execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.1.0</version>
<configuration>
<coberturaReports>
<coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
</coberturaReports>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<format>xml</format>
<maxmem>256m</maxmem>
<!-- aggregated reports for multi-module projects -->
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit f8be12a

Please sign in to comment.