From a8312726533fd6fa7d1063860e3f84360ee72db7 Mon Sep 17 00:00:00 2001 From: Shin Fan Date: Tue, 25 Apr 2017 10:28:40 -0700 Subject: [PATCH] Update site creation script (#1980) - Update site creation script: Cobertura requires running unit tests for instrumentation. --- pom.xml | 42 ++++++++++++++++++++++------------------ utilities/create_site.sh | 2 +- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index 1e6d78d409d4..ee8f21690333 100644 --- a/pom.xml +++ b/pom.xml @@ -349,6 +349,11 @@ + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + org.codehaus.mojo exec-maven-plugin @@ -506,24 +511,23 @@ org.codehaus.mojo cobertura-maven-plugin 2.7 - - ${basedir}/target - - xml - html - - true - - true - - com/google/cloud/**/*.class - - - com/google/cloud/examples/**/*.class - com/google/cloud/**/AutoValue_*.class - - - 256m + + ${basedir}/target + + xml + html + + true + + true + + com/google/cloud/**/*.class + + + com/google/cloud/examples/**/*.class + com/google/cloud/**/AutoValue_*.class + + @@ -557,7 +561,7 @@ - + org.apache.maven.plugins maven-site-plugin 3.4 diff --git a/utilities/create_site.sh b/utilities/create_site.sh index 573579138117..318af82f2c52 100755 --- a/utilities/create_site.sh +++ b/utilities/create_site.sh @@ -14,7 +14,7 @@ fi git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/google-cloud-java/ tmp_gh-pages mkdir -p tmp_gh-pages/$SITE_VERSION_BASE -mvn site -DskipTests=true -Djava.util.logging.config.file=logging.properties +mvn site -DskipITs -Djava.util.logging.config.file=logging.properties mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=http://googlecloudplatform.github.io/google-cloud-java/site/${SITE_VERSION_BASE}/ cd tmp_gh-pages