#!/bin/bash -vx export JAVA_HOME=$HOME/tools/java/latest/ export FORREST_HOME=$HOME/tools/forrest/latest/bin export ANT_HOME=$HOME/tools/ant/apache-ant-1.7.0 REL_SERVER=people.apache.org SNAPSHOT_DIR=/www/people.apache.org/maven-snapshot-repository/org/apache/lucene REL_DIR=/www/people.apache.org/builds/lucene/java/nightly DOCS_DIR=/www/lucene.apache.org/java/docs ARTIFACTS=`pwd`/artifacts TRUNK=`pwd`/trunk mkdir -p $ARTIFACTS cd $TRUNK # run build $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 cp dist/*.tar.gz $ARTIFACTS #Package the Source $ANT_HOME/bin/ant clean $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 #Generate the Maven snapshot #Update the Version # when doing a release $ANT_HOME/bin/ant -Dversion=3.1-SNAPSHOT generate-maven-artifacts #copy the artifacts to the side so the cron job can publish them cp -R dist/maven/org/apache/lucene ../../maven-artifacts #Rerun nightly with clover on $ANT_HOME/bin/ant clean $ANT_HOME/bin/ant -lib $CLOVER_HOME/lib \ -Dversion=$BUILD_ID \ -Drun.clover=true nightly #generate the clover reports $ANT_HOME/bin/ant -lib $CLOVER_HOME/lib \ -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_HOME/bin/forrest -Dforrest.jvmargs=-Djava.awt.headless=true #copy to server #Docs are exported from SVN nightly by a cron job on Grant's p.a.o account #scp -r docs/* $REL_SERVER:$DOCS_DIR/ #Back up to the root of Lucene #cd ../../ $ANT_HOME/bin/ant \ -Dversion=$BUILD_ID \ javadocs #javadocs are in $TRUNK/build/docs/api #scp -r build/docs/api/* $REL_SERVER:$DOCS_DIR/api