lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r891633 - /lucene/java/nightly/hudson.sh
Date Thu, 17 Dec 2009 11:11:20 GMT
Author: uschindler
Date: Thu Dec 17 11:11:19 2009
New Revision: 891633

URL: http://svn.apache.org/viewvc?rev=891633&view=rev
Log:
simplify build script and make more configureable

Modified:
    lucene/java/nightly/hudson.sh

Modified: lucene/java/nightly/hudson.sh
URL: http://svn.apache.org/viewvc/lucene/java/nightly/hudson.sh?rev=891633&r1=891632&r2=891633&view=diff
==============================================================================
--- lucene/java/nightly/hudson.sh (original)
+++ lucene/java/nightly/hudson.sh Thu Dec 17 11:11:19 2009
@@ -3,61 +3,75 @@
 set -x
 
 ANT_HOME=/export/home/hudson/tools/ant/latest
+SVNVERSION_EXE=/opt/subversion-current/bin/svnversion
+SVN_EXE=/opt/subversion-current/bin/svn
+MAVEN_SUPPORT=/export/home/nigel/hudsonSupport/maven
+CLOVER=/export/home/hudson/tools/clover/clover2latest
+
+SVN_BRANCH_DIR=trunk
+
+#Update the Version # when doing a release
+MAVEN_ARTIFACT_VERSION=3.1-SNAPSHOT
 
 ARTIFACTS=$WORKSPACE/artifacts
 MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
-TRUNK=$WORKSPACE/trunk
+
 mkdir -p $ARTIFACTS
 mkdir -p $MAVEN_ARTIFACTS
-cd $TRUNK
+cd $WORKSPACE/$SVN_BRANCH_DIR
 
 echo "Workspace: $WORKSPACE"
 
-
 #Package the Source
 $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
-   -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-   -Dsvn.exe=/opt/subversion-current/bin/svn \
-   clean package-tgz-src
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
+  clean package-tgz-src
 # release it
 cp dist/*-src.tar.gz $ARTIFACTS
 
+# run build
+$ANT_HOME/bin/ant \
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
+  -Dversion=$BUILD_ID \
+  -Dtest.junit.output.format=xml \
+  test package-tgz
+# release it
+cp dist/*.tar.gz $ARTIFACTS
+
 #Generate the Maven snapshot
-#Update the Version # when doing a release
-$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
-  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-  -Dsvn.exe=/opt/subversion-current/bin/svn \
-  -Dversion=3.1-SNAPSHOT generate-maven-artifacts
+$ANT_HOME/bin/ant -lib $MAVEN_SUPPORT \
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
+  -Dversion=$MAVEN_ARTIFACT_VERSION \
+  clean generate-maven-artifacts
 #copy the artifacts to the side so the cron job can publish them
 echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
 cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
 echo "Done Copying Maven Artifacts"
 
-# run build
-$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
-  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-  -Dsvn.exe=/opt/subversion-current/bin/svn \
-  -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
-# release it
-cp dist/*.tar.gz $ARTIFACTS
-
-#Rerun nightly with clover on
-$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
-  -lib /export/home/hudson/tools/clover/clover2latest \
-  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-  -Dsvn.exe=/opt/subversion-current/bin/svn \
-  -Dversion=$BUILD_ID -Drun.clover=true clean test
+#Rerun testsuite with clover on
+$ANT_HOME/bin/ant \
+  -lib $CLOVER \
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
+  -Dtest.junit.output.format=xml \
+  -Dversion=$BUILD_ID
+  -Drun.clover=true \
+  clean test
 
 #generate the clover reports
 ANT_OPTS="-Xmx896M" $ANT_HOME/bin/ant \
-  -lib /export/home/nigel/hudsonSupport/junit \
-  -lib /export/home/hudson/tools/clover/clover2latest \
-  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-  -Dsvn.exe=/opt/subversion-current/bin/svn \
-  -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
+  -lib $CLOVER \
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
+  -Dversion=$BUILD_ID
+  -Drun.clover=true \
+  generate-clover-reports
 
 #build javadocs again
 $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
-  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  -Dsvnversion.exe=$SVNVERSION_EXE \
+  -Dsvn.exe=$SVN_EXE \
   javadocs



Mime
View raw message