Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 93435 invoked from network); 27 Jul 2005 06:00:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2005 06:00:19 -0000 Received: (qmail 50157 invoked by uid 500); 27 Jul 2005 06:00:19 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 50009 invoked by uid 500); 27 Jul 2005 06:00:18 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 49995 invoked by uid 99); 27 Jul 2005 06:00:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 23:00:18 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 26 Jul 2005 23:00:11 -0700 Received: (qmail 93426 invoked by uid 65534); 27 Jul 2005 06:00:17 -0000 Message-ID: <20050727060017.93425.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r225460 - /geronimo/scripts/build_and_complain.sh Date: Wed, 27 Jul 2005 06:00:16 -0000 To: scm@geronimo.apache.org From: dblevins@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dblevins Date: Tue Jul 26 23:00:15 2005 New Revision: 225460 URL: http://svn.apache.org/viewcvs?rev=225460&view=rev Log: - Reworked to use m:checkout - Uses sendmail instead of mutt, so now reply-to is dev@geronimo.apache.org - Can also specify the svn url so as to be useful for building/testing the QA and other branches Modified: geronimo/scripts/build_and_complain.sh Modified: geronimo/scripts/build_and_complain.sh URL: http://svn.apache.org/viewcvs/geronimo/scripts/build_and_complain.sh?rev=225460&r1=225459&r2=225460&view=diff ============================================================================== --- geronimo/scripts/build_and_complain.sh (original) +++ geronimo/scripts/build_and_complain.sh Tue Jul 26 23:00:15 2005 @@ -38,22 +38,35 @@ # directory on people.apache.org. If your keys aren't setup, this # won't work so well. # -# Email messages are send with mutt, which could be improved to be -# something usually installed on a typical machine. -# -# The email address for nagging emails can be a parameter ############################################################ # # Parameters # ############################################################ - + +function usage { + echo "$(basename $0) [-u user] [-s svn_url] [email_address]" +} + +# The default svn url +SCM_URL="http://svn.apache.org/repos/asf/geronimo/trunk" + +while getopts "s:u:" option; do + case $option in + u ) USER=$OPTARG;; + s ) SCM_URL=$OPTARG;; + \? ) usage; exit 1;; + * ) usage; exit 1;; + esac +done +shift $(($OPTIND -1)) + # The email address to complain to SCM_LIST=${1:-scm@geronimo.apache.org} -# The list of modules we will build -MODULES=$(ls geronimo/{applications,specs,plugins,modules}/*/project.xml openejb/modules/*/project.xml tranql{,-connector}/project.xml | tr '\n' ',') +echo "build: $SCM_URL" +echo "notify: $SCM_LIST" ############################################################ # @@ -62,16 +75,6 @@ ############################################################ #---- -# Checkout the projects needed if not already checked out -# -function setup { - [ ! -d geronimo ] && svn co http://svn.apache.org/repos/asf/geronimo/trunk geronimo - [ ! -d openejb ] && cvs -d:pserver:anon@cvs.openejb.org:/scm/openejb co openejb - [ ! -d tranql ] && cvs -d:pserver:anon@cvs.tranql.codehaus.org:/scm/tranql co tranql - [ ! -d tranql-connector ] && cvs -d:pserver:anon@cvs.tranql.codehaus.org:/scm/tranql co -d tranql-connector connector -} - -#---- # Don't kill the build on failing tests. Run it all the # way through and report all the failing tests at the end. # @@ -113,15 +116,24 @@ maven --info > /tmp/$BUILD_ID/maven-info.txt uname -a > /tmp/$BUILD_ID/system-info.txt + echo "http://people.apache.org/~$USER/$BUILD_ID" scp -C -r /tmp/$BUILD_ID people.apache.org:public_html/ # Everything from EOF ...(many lines)... EOF is the email, # so if you want to change the output, this is where. ### begin email output ### - mutt -xs "build failed $(date)" $TO <&1 | tee scm-log.txt +BUILD_ID=$DIR-$(date +%Y%m%d-%H%M) # run the build LOG=$BUILD_ID-output.txt { - echo "Building $MODULES" - xmaven -Dmaven.multiproject.includes=$MODULES -Dgoal=default multiproject:goal + echo "\$ svn co $SCM_URL $DIR" + svn co $SCM_URL $DIR && + echo "\$ maven m:checkout clean default" && + (cd $DIR && xmaven m:checkout clean default) } 2>&1 | tee $LOG # check the log file and complain if needed @@ -182,6 +184,3 @@ # kill our log file rm $LOG - - -