geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r612136 - /geronimo/gbuild/daily_build_scripts/gbuild.sh
Date Tue, 15 Jan 2008 15:24:09 GMT
Author: gawor
Date: Tue Jan 15 07:24:08 2008
New Revision: 612136

URL: http://svn.apache.org/viewvc?rev=612136&view=rev
Log:
publish unit test reports if build fails

Modified:
    geronimo/gbuild/daily_build_scripts/gbuild.sh

Modified: geronimo/gbuild/daily_build_scripts/gbuild.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/gbuild.sh?rev=612136&r1=612135&r2=612136&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/gbuild.sh (original)
+++ geronimo/gbuild/daily_build_scripts/gbuild.sh Tue Jan 15 07:24:08 2008
@@ -142,6 +142,15 @@
   rm -f temp
 }
 
+function copyUnitTestReports() {
+   DIRS=`find . -type d -name surefire-reports`
+   for DIR in $DIRS
+   do
+       mkdir -p $UNIT_DIR/$DIR
+       cp $DIR/*.txt $UNIT_DIR/$DIR
+   done
+}
+
 function mail_results() {
    if [ "$1" = "passed" ]
    then
@@ -202,6 +211,15 @@
    . $SCRIPT_DIR/tck.sh ${TCK_BRANCH}
 
 else
+  # if build failed, publish unit test reports
+  UNIT_DIR=$TEST_DIR/$BRANCH_DIR/unit-test-reports
+  copyUnitTestReports
+  scp -r $UNIT_DIR ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
+
+  echo " " >> mail.txt
+  echo "See the unit test reports at http://people.apache.org/~${REMOTE_ACCOUNT}/binaries/$BRANCH_DIR/$dir/unit-test-reports"
>> mail.txt
+  echo " " >> mail.txt
+
   tail -100 $log >> mail.txt
   mail_results "failed"
 



Mime
View raw message