Skip to content

Commit

Permalink
Update site creation script (#1980)
Browse files Browse the repository at this point in the history
- Update site creation script: Cobertura requires running unit tests for instrumentation.
  • Loading branch information
shinfan authored Apr 25, 2017
1 parent b111a9f commit a831272
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
42 changes: 23 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand Down Expand Up @@ -506,24 +511,23 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<aggregate>true</aggregate>
<instrumentation>
<ignoreTrivial>true</ignoreTrivial>
<includes>
<include>com/google/cloud/**/*.class</include>
</includes>
<excludes>
<exclude>com/google/cloud/examples/**/*.class</exclude>
<exclude>com/google/cloud/**/AutoValue_*.class</exclude>
</excludes>
</instrumentation>
<maxmem>256m</maxmem>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<aggregate>true</aggregate>
<instrumentation>
<ignoreTrivial>true</ignoreTrivial>
<includes>
<include>com/google/cloud/**/*.class</include>
</includes>
<excludes>
<exclude>com/google/cloud/examples/**/*.class</exclude>
<exclude>com/google/cloud/**/AutoValue_*.class</exclude>
</excludes>
</instrumentation>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -557,7 +561,7 @@
</execution>
</executions>
</plugin>
<plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
Expand Down
2 changes: 1 addition & 1 deletion utilities/create_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a831272

Please sign in to comment.