diff --git a/.travis.yml b/.travis.yml index 8fdf653290f..1e4efa4be92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index fe9b125ce64..f71daf64337 100644 --- a/README.md +++ b/README.md @@ -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/). + diff --git a/pom.xml b/pom.xml index e9b6e20e981..03967ed9bc8 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,34 @@ + + org.eluder.coveralls + coveralls-maven-plugin + 3.1.0 + + + ${basedir}/target/coverage.xml + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.6 + + ${basedir}/target + + xml + html + + xml + 256m + + true + + +