From 8e5923e53516818a7b049ff3026682cfad8d3218 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 26 Apr 2016 15:17:25 -0700 Subject: [PATCH] Exclude generated code files from code coverage. This was causing the Coveralls plugin to fail with "Source not found". --- .gitignore | 8 ++++++++ java-repo-tools/pom.xml | 20 ++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 25751278147..9b81b43e32d 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,11 @@ service-account.json .project .classpath .settings + +# Vim +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +Session.vim +.netrwhist +*~ +tags diff --git a/java-repo-tools/pom.xml b/java-repo-tools/pom.xml index 680352cd620..7207140f6d3 100644 --- a/java-repo-tools/pom.xml +++ b/java-repo-tools/pom.xml @@ -88,17 +88,29 @@ limitations under the License. org.codehaus.mojo cobertura-maven-plugin - 2.6 + 2.7 - ${basedir}/target + + true xml html xml + + + + **/*AutoValue_* + **/com/google/api/* + **/com/google/rpc/* + **/com/google/type/* + **/com/google/cloud/speech/v1/* + **/com/google/logging/type/* + **/com/google/logging/v2/* + + 256m - - true + ${basedir}/target