Changeset 42


Ignore:
Timestamp:
04/24/09 14:41:27 (16 years ago)
Author:
Mathieu Morlighem
Message:

rewritten nightly runs for issm

Location:
issm/trunk/cron
Files:
5 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/README

    r1 r42  
    77For example, if you add:
    88
    9 5 5 * * * cd $ICEHOME/Cron && ./ice.sh
     95 5 * * * cd $ISSM_DIR/cron && ./nightlyrun.sh
    1010
    1111This will run all the scripts in the Cron directory, every day, at 5:05 am.
     
    1313
    1414
    15 If users want to add their own scripts, just add the script to the Cron directory and
    16 add an entry in the ice.sh for this script.
     15If users want to add their own scripts, just add the script to the cron directory and
     16add an entry in the issm.sh for this script.
  • issm/trunk/cron/linux_cronfile

    r1 r42  
    1 #05 0 * * * cd $HOME/Ice/ice1/cron/ && ./ice.sh
    2 */5 * * * * cd $HOME/TestingForeign/ && source /u/wilkes-r1b/larour/Ice/ice1.proto/cron/testingforeign.sh
    3 */5 * * * * cd $HOME/TestingForeign/ && source /u/wilkes-r1b/larour/Ice/ice1.proto/cron/killingforeign.sh
     1#05 0 * * * cd $HOME/Ice/issm/trunk/cron/ && ./nightlyrun.sh
  • issm/trunk/cron/nightlyrun.sh

    r1 r42  
    99}
    1010
    11 export ISSM_DIR="/home/seroussi/Ice/ice1/cron/ice1"
    12 
    13 ICE_RELEASE="ice1";
    14 ICE_REPOSITORY="/home/larour/Ice_Repository";
     11#create ISSM variables
     12OLDISSM_DIR=$ISSM_DIR;
     13export ISSM_DIR="/home/morlighe/Ice/issm/trunk/cron/issm/trunk"
     14ISSM_RELEASE="issm";
    1515
    1616#Figure out today's date
     
    1919
    2020#Erase code
    21 rm -rf $ICE_RELEASE
     21rm -rf $ISSM_RELEASE
    2222
    23 #Fetch cvs code
    24 cvs -d $ICE_REPOSITORY co -P $ICE_RELEASE
     23#Fetch svn code
     24svn checkout file:///u/wilkes-r1b/larour/Repository/issm
    2525
    2626source $ISSM_DIR/etc/environment.sh
    2727
    28 #Go to the ice directory
    29 cd $ICE_RELEASE
    30 ICEDIR=`pwd`;
     28#Go to the issm directory
     29cd $ISSM_DIR
    3130
    3231#install ISSM
    33 cd scripts
    34 sh quickinstall.sh
     32
     33#1: install some packages
     34cd externalpackages
     35cd mpich2
     36sh install.sh
     37cd ../petsc
     38sh install.sh
     39cd ../metis
     40sh install.sh
     41cd ../triangle
     42sh install.sh
     43cd $ISSM_DIR
     44
     45#2: install automake and autoconf
     46cd devpackages
     47make
    3548cd ..
     49
     50#3: generate MakeFiles
     51./reconfigure.sh
     52./configure.sh
     53
     54#4: compile ISSM
     55make
     56make install
    3657
    3758#Figure out mailing list
     
    5475        for i in `echo $MAILINGLIST`
    5576                do
    56                         mail -s "Nightly runs of $ICE_RELEASE on: $host_name. Date:$today. DID NOT WORK CORRECTLY" $i < nightly.log
     77                        mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today. DID NOT WORK CORRECTLY" $i < nightly.log
    5778                done
    5879else
    5980        for i in `echo $MAILINGLIST`
    6081                do 
    61                         mail -s "Nightly runs of $ICE_RELEASE on: $host_name. Date:$today." $i < errors.log
     82                        mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." $i < errors.log
    6283                done
    6384fi
     
    6889#Erase ice code
    6990cd ..
    70 rm -rf $ICE_RELEASE
     91rm -rf $ISSM_RELEASE
    7192
    7293#back to old ISSM_DIR
Note: See TracChangeset for help on using the changeset viewer.