Ignore:
Timestamp:
2013-08-20T21:34:13+12:00 (11 years ago)
Author:
ak19
Message:

Stop diffcol task if compile fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/task.pl

    r28072 r28106  
    3939my $use_blat = 0; # if we ever get blat to send mail/attachments on Windows working, set this to 1
    4040
    41 my $use_local_rebuild = 0; # set to 1 (true) if we needn't copy model-collection over to the test collection again nor rebuild it (This is useful when having built the collection locally once before)
     41my $use_local_rebuild = 0; # set to 1 (true) if just diffing and so we needn't copy model-collection over to the test collection again nor rebuild it (This is useful when having built the collection locally once before)
    4242my $use_static_model = 0; # set to 1 (true) if working with a non-svn model-collection. Defaults to 1 if $use_local_rebuild is turned on
    4343
     
    264264        $cmd = "makegs2.bat silent 2>> $ENV{'DATA_DIR'}/compilation-errors"; # STDERR is sent to compilation-errors file
    265265        $status = system $cmd;
     266        if($status != 0) {
     267            print STDERR "Greenstone compilation on Windows failed\n";
     268            exit -1;
     269        }
    266270       
    267271    } else { # if we're on linux/darwin, need gnome-lib for the correct architecture. And need imagemagick to build imgs in collections
     
    380384   
    381385    if($status != 0) {
    382         print STDERR "@@@ Compile failed\n";
     386        print STDERR "@@@ Compilation of Greenstone on Linux/Mac failed\n";
    383387        exit -1;
    384388    }
Note: See TracChangeset for help on using the changeset viewer.