You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2008/01/15 16:24:09 UTC
svn commit: r612136 - /geronimo/gbuild/daily_build_scripts/gbuild.sh
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"