lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r489445 - /lucene/java/nightly/nightly.sh
Date Thu, 21 Dec 2006 19:28:59 GMT
Author: gsingers
Date: Thu Dec 21 11:28:58 2006
New Revision: 489445

URL: http://svn.apache.org/viewvc?view=rev&rev=489445
Log:
LUCENE 708.  Now builds/updates the website and clover code coverage reports

Modified:
    lucene/java/nightly/nightly.sh

Modified: lucene/java/nightly/nightly.sh
URL: http://svn.apache.org/viewvc/lucene/java/nightly/nightly.sh?view=diff&rev=489445&r1=489444&r2=489445
==============================================================================
--- lucene/java/nightly/nightly.sh (original)
+++ lucene/java/nightly/nightly.sh Thu Dec 21 11:28:58 2006
@@ -1,28 +1,59 @@
 #!/bin/bash -vx
 
 export JAVA_HOME=/usr/j2se
-
+export FORREST_BIN=$HOME/bin/forrest/bin
 TRUNK=http://svn.apache.org/repos/asf/lucene/java/trunk
 
 REL_SERVER=people.apache.org
 REL_DIR=/www/people.apache.org/builds/lucene/java/nightly
+#./public_html/nightly-build
+#
+DOCS_DIR=/www/lucene.apache.org/java/docs
+./public_html/docs-gsi
+#
+
+NIGHTLY=lucene-nightly-gsi
 
 # create an empty build directory
-rm -rf /tmp/lucene-nightly
+rm -rf /tmp/$NIGHTLY
 cd /tmp
 
 # export sources into it
-$HOME/bin/svn export $TRUNK lucene-nightly
+$HOME/bin/svn export $TRUNK $NIGHTLY
 
 # run build
-cd lucene-nightly
+cd $NIGHTLY
 $HOME/bin/ant \
- -propertyfile $HOME/lucene-nightly/nightly.properties \
+ -propertyfile $HOME/$NIGHTLY/nightly.properties \
  -logger org.apache.tools.ant.listener.MailLogger \
- -Dversion=nightly nightly
+ -Dversion=nightly -Drun.clover=true nightly
 
 # release it
 scp dist/*.tar.gz $REL_SERVER:$REL_DIR/lucene-`/bin/date +%F`.tar.gz
 
 # remove all but five newest builds
 ssh $REL_SERVER rm `ssh $REL_SERVER find $REL_DIR -type f | sort -r | tail +5`
+
+#cd src/site
+#If we were to build the site, this is the command
+#$FORREST_BIN/forrest -Dforrest.jvmargs=-Djava.awt.headless=true
+#copy  to server
+scp -r docs/* $REL_SERVER:$DOCS_DIR/
+#Back up to the root of Lucene
+#cd ../../
+
+#generate the clover reports
+$HOME/bin/ant \
+ -propertyfile $HOME/$NIGHTLY/nightly.properties \
+ -logger org.apache.tools.ant.listener.MailLogger \
+ -Dversion=nightly -Drun.clover=true generate-clover-reports
+#copy the clover reports to the docs
+scp -r build/test/clover/reports/*  $REL_SERVER:$DOCS_DIR/clover
+
+$HOME/bin/ant \
+ -propertyfile $HOME/$NIGHTLY/nightly.properties \
+ -logger org.apache.tools.ant.listener.MailLogger \
+ -Dversion=nightly javadocs
+
+#javadocs are in $NIGHTLY/build/docs/api
+scp -r build/docs/api/* $REL_SERVER:$DOCS_DIR/api



Mime
View raw message