source: branches/testScripts/NBuserConfig.py @ 627

Last change on this file since 627 was 626, checked in by jpfasano, 12 years ago

Added NBosCommand (nightly build operating system command).
This is an attempt to run commands and exe's in a subprocess, so if they
crash they don't bring down the script

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1#! /usr/bin/env python
2
3from socket import gethostname
4
5#----------------------------------------------------------------------
6# This file contains variables that person running this scirpt
7# might need to change.
8#----------------------------------------------------------------------
9
10
11
12#----------------------------------------------------------------------
13# NIGHTLY_BUILD_ROOT_DIR:
14#   directory where code will be checked out and builds
15#   done. If the directory does not exist, it will be created.
16#----------------------------------------------------------------------
17if gethostname()=='ubuntu' :
18  NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN'
19elif gethostname()=='math01.watson.ibm.com' :
20  NIGHTLY_BUILD_ROOT_DIR = '/u/jpfasano/COIN/nbTest'
21else :
22  NIGHTLY_BUILD_ROOT_DIR = '/Users/kmartin/COIN'
23
24SVNPATH_PREFIX=''
25 
26
27#----------------------------------------------------------------------
28# Values for sending mail:
29#  SMTP_SERVER_NAME: name of smtp server. For gmail server
30#                 this is smtp.gmail.com
31#  SMTP_SERVER_PORT: port number of the smtp server. This is typically 25,
32#                 but for gmail server it is 587.
33#  SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls).
34#                 For gmail this is 1.
35#  SMTP_USER_NAME: name of authorized user on server. If using gmail server
36#                 this is gmail_userid@gmail.com which is coded as
37#                 'gmail_userid _AT_ gmail _DOT_ com. 
38#  SMTP_PASSWORD_FILENAME: name of file containing smtp user's password
39#  SENDER_EMAIL_ADDR: email sent by this script will be from this address
40#  MY_EMAIL_ADDR: All problems detected by the script will be sent to
41#                 this email address. The intention is for this to be
42#                 the email address of the person running this script
43#  SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems
44#                 detected are sent to MY_EMAIL_ADDRESS and the
45#                 project manager.
46#----------------------------------------------------------------------
47if gethostname()=='ubuntu' or gethostname()=='math01.watson.ibm.com':
48  #SMTP_SERVER_NAME = 'outgoing.verizon.net'
49  #SMTP_SERVER_PORT = 25
50  #SMTP_SSL_SERVER = 0
51  #SMTP_USER_NAME = 'jpfasano'
52
53  SMTP_SERVER_NAME = 'smtp.gmail.com'
54  SMTP_SERVER_PORT = 587
55  SMTP_SSL_SERVER = 1
56  SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com'
57  if gethostname()=='ubuntu' :
58    SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile'
59  else :
60    SMTP_PASSWORD_FILENAME = '/u/jpfasano/COIN/bin/smtpPwFile'
61
62  SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net'
63  MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com'
64  SEND_MAIL_TO_PROJECT_MANAGER=0
65else :
66  SMTP_SERVER_NAME = 'gsbims.uchicago.edu'
67  SMTP_SERVER_PORT =587
68  SMTP_SSL_SERVER = 0
69  SMTP_USER_NAME = 'kmartin'
70  SMTP_PASSWORD_FILENAME = '/Users/kmartin/passwd'
71
72  SENDER_EMAIL_ADDR='kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu'
73  MY_EMAIL_ADDR='kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu'
74  SEND_MAIL_TO_PROJECT_MANAGER=0
75  SVNPATH_PREFIX='/usr/local/bin/'
76
77
78#----------------------------------------------------------------------
79# List of Projects to be processed by script
80#----------------------------------------------------------------------
81PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\
82            'FlopC++','Ipopt','OS','CppAD']
83
84
Note: See TracBrowser for help on using the repository browser.