Skip to content

Commit

Permalink
Merge pull request #17 from GoogleCloudPlatform/coverage2
Browse files Browse the repository at this point in the history
Add Travis Icon and Cobertura Coverage
  • Loading branch information
waprin committed Jun 19, 2015
2 parents 2d3f224 + 9661002 commit 7a91d58
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ before_install:
- openssl aes-256-cbc -K $encrypted_99d8b304f94b_key -iv $encrypted_99d8b304f94b_iv -in service-account.json.enc -out service-account.json -d

script: mvn test
after_success:
- mvn clean cobertura:cobertura coveralls:report
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# java-docs-samples

[![Build Status](https://travis-ci.org/GoogleCloudPlatform/java-docs-samples.svg)](https://travis-ci.org/GoogleCloudPlatform/java-docs-samples)
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/java-docs-samples/badge.svg)](https://coveralls.io/r/GoogleCloudPlatform/java-docs-samples)

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

27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,34 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.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>
</plugins>

</build>

<dependencyManagement>
Expand Down

0 comments on commit 7a91d58

Please sign in to comment.