Changeset 680 for branches


Ignore:
Timestamp:
Oct 25, 2007 8:01:11 AM (12 years ago)
Author:
stefan
Message:

change way of reading user parameters; rename option STORE_EMAIL to EMAIL_STOREFILE

Location:
branches/testScripts
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBemail.py

    r679 r680  
    8484
    8585  #store email in a file instead of sending
    86   if len(NBuserConfig.STORE_EMAIL) > 0 and not NBuserConfig.STORE_EMAIL.isspace() :
    87     NBlogMessages.writeMessage( '  store email in file '+NBuserConfig.STORE_EMAIL)
    88     emailfile=open(NBuserConfig.NIGHTLY_BUILD_ROOT_DIR+'/'+NBuserConfig.STORE_EMAIL, 'a')
     86  if len(NBuserConfig.EMAIL_STOREFILE) > 0 and not NBuserConfig.EMAIL_STOREFILE.isspace() :
     87    NBlogMessages.writeMessage( '  store email in file '+NBuserConfig.EMAIL_STOREFILE)
     88    emailfile=open(NBuserConfig.NIGHTLY_BUILD_ROOT_DIR+'/'+NBuserConfig.EMAIL_STOREFILE, 'a')
    8989    emailfile.write(msgWHeader)
    9090    emailfile.write("\n============ EMAIL END ======================================\n")
  • branches/testScripts/NBuserConfig.py

    r678 r680  
    22
    33import sys
    4 #sys.path.append('/Users/kmartin/Documents/files')
    5 import userParameters
    64
    75from socket import gethostname
    86
    9 #----------------------------------------------------------------------
    10 # NIGHTLY_BUILD_ROOT_DIR:
    11 #   directory where code will be checked out and builds
    12 #   done. If the directory does not exist, it will be created.
    13 #----------------------------------------------------------------------
    14 NIGHTLY_BUILD_ROOT_DIR = 'xxx'
    15 
    16 
    17 #----------------------------------------------------------------------
    18 # LOGPRINT:
    19 #   switch for logoutput to stdout. If set to 1 (default) log will go to
    20 #   stdout, if set to 0, then not.
    21 # LOGFILE:
    22 #   If not empty, then log messages will go to this file.
    23 #   If LOGPRINT is 1, then log messages will go to stdout as well.
    24 #   The LOGFILE will be used relative to the NIGHTLY_BUILD_ROOT_DIR, i.e.,
    25 #   log will be written into NIGHTLY_BUILD_ROOT_DIR+'/'+LOGFILE
    26 #----------------------------------------------------------------------
    27 
    28 LOGPRINT='1'
    29 LOGFILE=''
    30        
    31 #----------------------------------------------------------------------
    32 # Define directory where svn is located.
    33 # If svn is in the default path, then this can be set to an empty string
    34 #----------------------------------------------------------------------
    35 SVNPATH_PREFIX=''
    36 
    37 
    38  
    39 
    40 
    41 #----------------------------------------------------------------------
    42 # Values for sending mail:
    43 #  SMTP_SERVER_NAME: name of smtp server. For gmail server
    44 #                 this is smtp.gmail.com
    45 #  SMTP_SERVER_PORT: port number of the smtp server. This is typically 25,
    46 #                 but for gmail server it is 587.
    47 #  SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls).
    48 #                 For gmail this is 1.
    49 #  SMTP_USER_NAME: name of authorized user on server. If using gmail server
    50 #                 this is gmail_userid@gmail.com which is coded as
    51 #                 'gmail_userid _AT_ gmail _DOT_ com. 
    52 #  SMTP_PASSWORD_FILENAME: name of file containing smtp user's password
    53 #  SENDER_EMAIL_ADDR: email sent by this script will be from this address
    54 #  MY_EMAIL_ADDR: All problems detected by the script will be sent to
    55 #                 this email address. The intention is for this to be
    56 #                 the email address of the person running this script
    57 #  SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems
    58 #                 detected are sent to MY_EMAIL_ADDRESS and the
    59 #                 project manager.
    60 #  STORE_EMAIL: If set, then e-mails are not send but stored in a file.
    61 #               The filename is relative to NIGHTLY_BUILD_ROOT_DIR.
    62 #               If set, then no values for the SMTP_ fields need to be given.
    63 #----------------------------------------------------------------------
    64 SMTP_SERVER_NAME = 'xxx.smtp.server.name'
    65 SMTP_SERVER_PORT =25
    66 SMTP_SSL_SERVER = 0
    67 SMTP_USER_NAME = 'xxxx'
    68 SMTP_PASSWORD_FILENAME = '/xxx/yyy/smtpPassWordFile'
    69 
    70 SENDER_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
    71 MY_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
    72 SEND_MAIL_TO_PROJECT_MANAGER=0
    73 
    74 STORE_EMAIL = ''
    75 
    76 #----------------------------------------------------------------------
    77 # DOWNLOAD_3RD_PARTY: 0 or 1.
    78 # Several COIN-OR projects provide scripts for downloading 3rd party
    79 # code that the project will use if it is available.  Some of
    80 # the this 3rd party code is distributed under various different
    81 # licenses. A 1 indicates that the script will download 3rd party
    82 # code if the COIN-OR project provides the script
    83 # ThirdParty/xxx/get.xxx where xxx is the name of the third party code
    84 #----------------------------------------------------------------------
    85 DOWNLOAD_3RD_PARTY=0
    86 
    87 
    88 
    89 #----------------------------------------------------------------------
    90 #On some systems the user might want to set extra options for the
    91 #configure script like compilers...
    92 #----------------------------------------------------------------------
    93 CONFIGURE_FLAGS = ''
     7execfile('NBuserParametersDefault.py')
    948
    959#----------------------------------------------------------------------
     
    9812PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\
    9913            'Ipopt','Bonmin','FlopC++','OS']
    100 
    101 
    10214
    10315
     
    11931              ]
    12032
    121 BUILD_TYPES = [\
    122               ['Default',  'NoThirdParty' ]\
    123               ]               
     33# OLD WAY to read user parameters:
    12434
    125 
    126 #NEW PARAMETER SETTINGS:
     35#sys.path.append('/Users/kmartin/Documents/files')
     36import userParameters
    12737
    12838NIGHTLY_BUILD_ROOT_DIR = userParameters.data['NIGHTLY_BUILD_ROOT_DIR']
     
    14151LOGFILE = userParameters.data['LOGFILE']
    14252LOGPRINT = userParameters.data['LOGPRINT']
     53
     54# NEW WAY to read user parameters:
     55#execfile('NBuserParameters.py')
Note: See TracChangeset for help on using the changeset viewer.