Author: aadamchik
Date: Wed Sep 13 19:50:15 2006
New Revision: 443199
URL: http://svn.apache.org/viewvc?view=rev&rev=443199
Log:
working nightly build script
Modified:
incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
Modified:
incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
URL:
http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl?view=diff&rev=443199&r1=443198&r2=443199
==============================================================================
---
incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
(original)
+++
incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
Wed Sep 13 19:50:15 2006
@@ -67,10 +67,10 @@
#
# Build with Maven
# -----------------------------
-$status = run_command("$mvn clean install");
+my $status = run_command("$mvn clean install");
die_with_email("Build failed, return status: $status\n") if $status;
-chdir "$cayenne_src/assembly" or die_with_email("Can't change to
$cayenne_src/assembly: $!\n");
+chdir "$cayenne_src/assembly/cayenne-generic" or die_with_email("Can't change
to $cayenne_src/assembly/cayenne-generic: $!\n");
$status = run_command("$mvn clean install");
die_with_email("Assembly failed, return status: $status\n") if $status;
@@ -80,14 +80,14 @@
$status = run_command("ssh www.objectstyle.org mkdir -p
$rel_path/$label");
die_with_email("Can't create release directory, return status:
$status\n") if $status;
+ my $upload_dir = "www.objectstyle.org:$rel_path/$year-$mon-$mday";
# Upload test results no matter what
#my $test_reports = "build/tests-report-nightly-test";
- # my $upload_dir = "www.objectstyle.org:$rel_path/$year-$mon-$mday";
#run_command("chmod -R 755 $test_reports");
#run_command("rsync -rltp -e ssh --delete --exclude='*.xml'
$test_reports/ $upload_dir/reports");
# Upload build even if it failed...
- my @gz_files = <cayenne-generic/target/assembly/out/*.gz>;
+ my @gz_files = <target/assembly/out/*.gz>;
die_with_email("Distribution file not found.") unless @gz_files;
my $gz_file = $gz_files[0];
@@ -101,18 +101,18 @@
sub get_source() {
if($opt_n) {
die_with_email("No existing cayenne checkout at $cayenne_src")
- unless -d "$cayenne_src/cayenne";
+ unless -d "$cayenne_src";
}
else {
# Prepare checkout directory
rmtree($cayenne_src, 0, 1) if -d $cayenne_src;
- mkpath($cayenne_src, 1, 0711) or die_with_email("Can't create
build directory: $!\n");
- chdir $cayenne_src or die_with_email("Can't change to
$cayenne_src: $!\n");
+ chdir $base or die_with_email("Can't change to $base: $!\n");
my $status = run_command(
" svn" .
" export" .
- " $opt_d");
+ " $opt_d" .
+ " cayenne");
print_line("SVN checkout status: $status\n");
die_with_email("SVN checkout failed, return status: $status\n")
if $status;
}
@@ -165,5 +165,4 @@
die $msg;
}
-