lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r577288 - /lucene/java/nightly/nightly.sh
Date Wed, 19 Sep 2007 12:43:26 GMT
Author: gsingers
Date: Wed Sep 19 05:43:25 2007
New Revision: 577288

URL: http://svn.apache.org/viewvc?rev=577288&view=rev
Log:
check in latest nightly.sh that is running on Hudson

Modified:
    lucene/java/nightly/nightly.sh

Modified: lucene/java/nightly/nightly.sh
URL: http://svn.apache.org/viewvc/lucene/java/nightly/nightly.sh?rev=577288&r1=577287&r2=577288&view=diff
==============================================================================
--- lucene/java/nightly/nightly.sh (original)
+++ lucene/java/nightly/nightly.sh Wed Sep 19 05:43:25 2007
@@ -1,80 +1,64 @@
 #!/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
+export JAVA_HOME=$HOME/tools/java/latest/
+export FORREST_HOME=$HOME/tools/forrest/latest/bin
+export ANT_HOME=$HOME/tools/ant/latest
 
 REL_SERVER=people.apache.org
 REL_DIR=/www/people.apache.org/builds/lucene/java/nightly
-#REL_DIR=./public_html/nightly-build
-#
 DOCS_DIR=/www/lucene.apache.org/java/docs
-#DOCS_DIR=./public_html/docs-gsi
-#
-
-NIGHTLY=lucene-nightly-gsi
-
-# create an empty build directory
-rm -rf /tmp/$NIGHTLY
-cd /tmp
-
-# export sources into it
-$HOME/bin/svn export $TRUNK $NIGHTLY
+ARTIFACTS=`pwd`/artifacts
+TRUNK=`pwd`/trunk
+mkdir -p $ARTIFACTS
+cd $TRUNK
 
 # run build
-cd $NIGHTLY
-$HOME/bin/ant \
- -propertyfile $HOME/$NIGHTLY/nightly.properties \
- -logger org.apache.tools.ant.listener.MailLogger \
- -Dversion=nightly nightly
+$ANT_HOME/bin/ant \
+ -Dversion=$BUILD_ID \
+ -Dtest.junit.output.format=xml nightly
 
 # release it
-scp dist/*.tar.gz $REL_SERVER:$REL_DIR/lucene-`/bin/date +%F`.tar.gz
+#scp dist/*.tar.gz $REL_SERVER:$REL_DIR/lucene-`/bin/date +%F`.tar.gz
+cp dist/*.tar.gz $ARTIFACTS
 
 #Package the Source
-$HOME/bin/ant clean
-$HOME/bin/ant \
- -propertyfile $HOME/$NIGHTLY/nightly.properties \
- -logger org.apache.tools.ant.listener.MailLogger \
-    -Dversion=nightly package-tgz-src
-
-# release it
-scp dist/*-src.tar.gz $REL_SERVER:$REL_DIR/lucene-`/bin/date +%F`-src.tar.gz
-
+$ANT_HOME/bin/ant clean
 
-# remove all but ten newest builds (5 for binary, 5 for src)
-ssh $REL_SERVER rm `ssh $REL_SERVER find $REL_DIR -type f | sort -r | tail +10`
+$ANT_HOME/bin/ant \
+ -Dversion=$BUILD_ID \
+ package-tgz-src
 
+# release it
+#scp dist/*-src.tar.gz $REL_SERVER:$REL_DIR/lucene-`/bin/date +%F`-src.tar.gz
+cp dist/*-src.tar.gz $ARTIFACTS
 
 #Rerun nightly with clover on
-$HOME/bin/ant clean
+$ANT_HOME/bin/ant clean
+
+$ANT_HOME/bin/ant \
+ -Dversion=$BUILD_ID \
+ -Drun.clover=true nightly
 
-$HOME/bin/ant \
- -propertyfile $HOME/$NIGHTLY/nightly.properties \
- -logger org.apache.tools.ant.listener.MailLogger \
- -Dversion=nightly -Drun.clover=true nightly
+#generate the clover reports
+$ANT_HOME/bin/ant \
+ -Dversion=$BUILD_ID \
+ -Drun.clover=true generate-clover-reports
 
+#copy the clover reports to the docs
+#scp -r build/test/clover/reports/*  $REL_SERVER:$DOCS_DIR/clover
 
 #cd src/site
 #If we were to build the site, this is the command
-#$FORREST_BIN/forrest -Dforrest.jvmargs=-Djava.awt.headless=true
+#$FORREST_HOME/bin/forrest -Dforrest.jvmargs=-Djava.awt.headless=true
 #copy  to server
-scp -r docs/* $REL_SERVER:$DOCS_DIR/
+#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
+$ANT_HOME/bin/ant \
+ -Dversion=$BUILD_ID \
+ javadocs
 
-$HOME/bin/ant \
- -propertyfile $HOME/$NIGHTLY/nightly.properties \
- -logger org.apache.tools.ant.listener.MailLogger \
- -Dversion=nightly javadocs
+#javadocs are in $TRUNK/build/docs/api
+#scp -r build/docs/api/* $REL_SERVER:$DOCS_DIR/api
 
-#javadocs are in $NIGHTLY/build/docs/api
-scp -r build/docs/api/* $REL_SERVER:$DOCS_DIR/api



Mime
View raw message