source: branches/testScripts/NBuserConfig.py @ 669

Last change on this file since 669 was 669, checked in by stefan, 12 years ago

switch for stdout-log independent of logfile

  • Property svn:executable set to *
File size: 6.9 KB
Line 
1#! /usr/bin/env python
2
3import sys
4#sys.path.append('/Users/kmartin/Documents/files')
5import userParameters
6
7from socket import gethostname
8
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#----------------------------------------------------------------------
14NIGHTLY_BUILD_ROOT_DIR = 'xxx'
15if gethostname()=='ubuntu' :
16  NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN'
17elif gethostname()=='math01.watson.ibm.com' :
18  NIGHTLY_BUILD_ROOT_DIR = '/u/jpfasano/COIN/nbTest'
19elif gethostname()=='JPF4' :
20  NIGHTLY_BUILD_ROOT_DIR = 'd:/nbTest'
21
22#----------------------------------------------------------------------
23# LOGPRINT:
24#   switch for logoutput to stdout. If set to 1 (default) log will go to
25#   stdout, if set to 0, then not.
26# LOGFILE:
27#   If not empty, then log messages will go to this file.
28#   If LOGPRINT is 1, then log messages will go to stdout as well.
29#   The LOGFILE will be used relative to the NIGHTLY_BUILD_ROOT_DIR, i.e.,
30#   log will be written into NIGHTLY_BUILD_ROOT_DIR+'/'+LOGFILE
31#----------------------------------------------------------------------
32
33LOGPRINT='1'
34LOGFILE=''
35       
36#----------------------------------------------------------------------
37# Define directory where svn is located.
38# If svn is in the default path, then this can be set to an empty string
39#----------------------------------------------------------------------
40SVNPATH_PREFIX=''
41if gethostname()=='math01.watson.ibm.com' :
42  SVNPATH_PREFIX='/gsa/yktgsa/projects/o/oslos/local/bin'
43elif gethostname()=='JPF4' :
44  SVNPATH_PREFIX = ''
45
46 
47
48
49#----------------------------------------------------------------------
50# Values for sending mail:
51#  SMTP_SERVER_NAME: name of smtp server. For gmail server
52#                 this is smtp.gmail.com
53#  SMTP_SERVER_PORT: port number of the smtp server. This is typically 25,
54#                 but for gmail server it is 587.
55#  SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls).
56#                 For gmail this is 1.
57#  SMTP_USER_NAME: name of authorized user on server. If using gmail server
58#                 this is gmail_userid@gmail.com which is coded as
59#                 'gmail_userid _AT_ gmail _DOT_ com. 
60#  SMTP_PASSWORD_FILENAME: name of file containing smtp user's password
61#  SENDER_EMAIL_ADDR: email sent by this script will be from this address
62#  MY_EMAIL_ADDR: All problems detected by the script will be sent to
63#                 this email address. The intention is for this to be
64#                 the email address of the person running this script
65#  SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems
66#                 detected are sent to MY_EMAIL_ADDRESS and the
67#                 project manager.
68#----------------------------------------------------------------------
69SMTP_SERVER_NAME = 'xxx.smtp.server.name'
70SMTP_SERVER_PORT =25
71SMTP_SSL_SERVER = 0
72SMTP_USER_NAME = 'xxxx'
73SMTP_PASSWORD_FILENAME = '/xxx/yyy/smtpPassWordFile'
74
75SENDER_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
76MY_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
77SEND_MAIL_TO_PROJECT_MANAGER=0
78if gethostname()=='ubuntu' or \
79   gethostname()=='math01.watson.ibm.com' or\
80   gethostname()=='JPF4' :
81  #SMTP_SERVER_NAME = 'outgoing.verizon.net'
82  #SMTP_SERVER_PORT = 25
83  #SMTP_SSL_SERVER = 0
84  #SMTP_USER_NAME = 'jpfasano'
85
86  SMTP_SERVER_NAME = 'smtp.gmail.com'
87  SMTP_SERVER_PORT = 587
88  SMTP_SSL_SERVER = 1
89  SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com'
90  if gethostname()=='ubuntu' :
91    SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile'
92  elif gethostname()=='math01.watson.ibm.com' :
93    SMTP_PASSWORD_FILENAME = '/u/jpfasano/COIN/bin/smtpPwFile'
94  else :
95    SMTP_PASSWORD_FILENAME = 'c:\smtpPwFile.txt'
96
97  SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net'
98  MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com'
99  SEND_MAIL_TO_PROJECT_MANAGER=0
100
101
102#----------------------------------------------------------------------
103# DOWNLOAD_3RD_PARTY: 0 or 1.
104# Several COIN-OR projects provide scripts for downloading 3rd party
105# code that the project will use if it is available.  Some of
106# the this 3rd party code is distributed under various different
107# licenses. A 1 indicates that the script will download 3rd party
108# code if the COIN-OR project provides the script
109# ThirdParty/xxx/get.xxx where xxx is the name of the third party code
110#----------------------------------------------------------------------
111DOWNLOAD_3RD_PARTY=0
112if gethostname()=='ubuntu' :
113  DOWNLOAD_3RD_PARTY=1
114elif gethostname()=='math01.watson.ibm.com' :
115  DOWNLOAD_3RD_PARTY=1
116elif gethostname()=='JPF4' :
117  DOWNLOAD_3RD_PARTY=1
118
119
120#----------------------------------------------------------------------
121#On some systems the user might want to set extra options for the
122#configure script like compilers...
123#----------------------------------------------------------------------
124CONFIGURE_FLAGS = ''
125
126#----------------------------------------------------------------------
127# List of Projects to be processed by script
128#----------------------------------------------------------------------
129PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\
130            'Ipopt','Bonmin','FlopC++','OS']
131
132
133PROJECTS = ['CoinUtils']
134
135
136#----------------------------------------------------------------------
137# For every project, indicate which svn versions are to be used.
138# Supported versions are: trunk & latestStable
139#----------------------------------------------------------------------
140PROJECT_VERSIONS = ['trunk','latestStable']
141
142#----------------------------------------------------------------------
143# For every project version, indicate all the ways the code is to
144# be built.
145# Presently, NoThirdParty is not yet working
146#----------------------------------------------------------------------
147BUILD_TYPES = [\
148              ['Default','ThirdParty'   ]\
149              ,['Debug',  'ThirdParty'   ]\
150              ,['Debug',  'NoThirdParty' ]\
151              ]
152
153BUILD_TYPES = [\
154              ['Default',  'NoThirdParty' ]\
155              ]               
156
157
158#NEW PARAMETER SETTINGS:
159
160
161# NIGHTLY_BUILD_ROOT_DIR = userParameters.data['NIGHTLY_BUILD_ROOT_DIR']
162# SMTP_SERVER_NAME = userParameters.data['SMTP_SERVER_NAME']
163# SMTP_SERVER_PORT = userParameters.data['SMTP_SERVER_PORT']
164# SMTP_SSL_SERVER = userParameters.data['SMTP_SSL_SERVER']
165# SMTP_USER_NAME = userParameters.data['SMTP_USER_NAME']
166# SMTP_PASSWORD_FILENAME = userParameters.data['SMTP_PASSWORD_FILENAME']
167# SENDER_EMAIL_ADDR = userParameters.data['SENDER_EMAIL_ADDR']
168# MY_EMAIL_ADDR =  userParameters.data['MY_EMAIL_ADDR']
169# SEND_MAIL_TO_PROJECT_MANAGER = userParameters.data['SEND_MAIL_TO_PROJECT_MANAGER']
170# SVNPATH_PREFIX = userParameters.data['SVNPATH_PREFIX']
171# DOWNLOAD_3RD_PARTY = userParameters.data['DOWNLOAD_3RD_PARTY']
172# CONFIGURE_FLAGS = userParameters.data['CONFIGURE_FLAGS']
173# LOGFILE = userParameters.data['LOGFILE']
174# LOGPRINT = userParameters.data['LOGPRINT']
Note: See TracBrowser for help on using the repository browser.