source: branches/testScripts/NBuserConfig.py @ 665

Last change on this file since 665 was 665, checked in by kmartin, 12 years ago

modify NBuserConfig.py to scale

  • Property svn:executable set to *
File size: 8.3 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#----------------------------------------------------------------------
11# This file contains variables that person running this script
12# might need to change.
13#----------------------------------------------------------------------
14
15
16
17#----------------------------------------------------------------------
18# NIGHTLY_BUILD_ROOT_DIR:
19#   directory where code will be checked out and builds
20#   done. If the directory does not exist, it will be created.
21#----------------------------------------------------------------------
22NIGHTLY_BUILD_ROOT_DIR = 'xxx'
23if gethostname()=='ubuntu' :
24  NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN'
25elif gethostname()=='math01.watson.ibm.com' :
26  NIGHTLY_BUILD_ROOT_DIR = '/u/jpfasano/COIN/nbTest'
27elif gethostname()=='JPF4' :
28  NIGHTLY_BUILD_ROOT_DIR = 'd:/nbTest'
29elif gethostname()=='fitzgeralds' :
30  NIGHTLY_BUILD_ROOT_DIR = '/home/stefan/globopt/nightlyBuild'
31elif gethostname()=='sol10vm' :
32  NIGHTLY_BUILD_ROOT_DIR = '/export/home/gams/stefan/nightlyBuild' 
33
34#----------------------------------------------------------------------
35# Define directory where svn is located.
36# If svn is in the default path, then this can be set to an empty string
37#----------------------------------------------------------------------
38SVNPATH_PREFIX=''
39if gethostname()=='math01.watson.ibm.com' :
40  SVNPATH_PREFIX='/gsa/yktgsa/projects/o/oslos/local/bin'
41elif gethostname()=='JPF4' :
42  SVNPATH_PREFIX = ''
43
44 
45
46
47#----------------------------------------------------------------------
48# Values for sending mail:
49#  SMTP_SERVER_NAME: name of smtp server. For gmail server
50#                 this is smtp.gmail.com
51#  SMTP_SERVER_PORT: port number of the smtp server. This is typically 25,
52#                 but for gmail server it is 587.
53#  SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls).
54#                 For gmail this is 1.
55#  SMTP_USER_NAME: name of authorized user on server. If using gmail server
56#                 this is gmail_userid@gmail.com which is coded as
57#                 'gmail_userid _AT_ gmail _DOT_ com. 
58#  SMTP_PASSWORD_FILENAME: name of file containing smtp user's password
59#  SENDER_EMAIL_ADDR: email sent by this script will be from this address
60#  MY_EMAIL_ADDR: All problems detected by the script will be sent to
61#                 this email address. The intention is for this to be
62#                 the email address of the person running this script
63#  SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems
64#                 detected are sent to MY_EMAIL_ADDRESS and the
65#                 project manager.
66#----------------------------------------------------------------------
67SMTP_SERVER_NAME = 'xxx.smtp.server.name'
68SMTP_SERVER_PORT =25
69SMTP_SSL_SERVER = 0
70SMTP_USER_NAME = 'xxxx'
71SMTP_PASSWORD_FILENAME = '/xxx/yyy/smtpPassWordFile'
72
73SENDER_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
74MY_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
75SEND_MAIL_TO_PROJECT_MANAGER=0
76if gethostname()=='ubuntu' or \
77   gethostname()=='math01.watson.ibm.com' or\
78   gethostname()=='JPF4' :
79  #SMTP_SERVER_NAME = 'outgoing.verizon.net'
80  #SMTP_SERVER_PORT = 25
81  #SMTP_SSL_SERVER = 0
82  #SMTP_USER_NAME = 'jpfasano'
83
84  SMTP_SERVER_NAME = 'smtp.gmail.com'
85  SMTP_SERVER_PORT = 587
86  SMTP_SSL_SERVER = 1
87  SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com'
88  if gethostname()=='ubuntu' :
89    SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile'
90  elif gethostname()=='math01.watson.ibm.com' :
91    SMTP_PASSWORD_FILENAME = '/u/jpfasano/COIN/bin/smtpPwFile'
92  else :
93    SMTP_PASSWORD_FILENAME = 'c:\smtpPwFile.txt'
94
95  SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net'
96  MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com'
97  SEND_MAIL_TO_PROJECT_MANAGER=0
98elif gethostname()=='fitzgeralds' :
99        SMTP_SERVER_NAME = 'smtp.1und1.de'
100        SMTP_SERVER_PORT = 25
101        SMTP_SSL_SERVER = 0
102        SMTP_USER_NAME = 'm40378980-stef'
103        SMTP_PASSWORD_FILENAME = '/home/stefan/globopt/testScripts/smtpPwFile'
104        SENDER_EMAIL_ADDR='stefan _AT_ vigerske _DOT_ de'
105        MY_EMAIL_ADDR='stefan _AT_ vigerske _DOT_ de'
106        SEND_MAIL_TO_PROJECT_MANAGER=0
107elif gethostname()=='sol10vm' :
108        SMTP_SERVER_NAME = 'smtp.1und1.de'
109        SMTP_SERVER_PORT = 25
110        SMTP_SSL_SERVER = 0
111        SMTP_USER_NAME = 'm40378980-stef'
112        SMTP_PASSWORD_FILENAME = '/export/home/gams/stefan/.smtpPwFile'
113        SENDER_EMAIL_ADDR='stefan _AT_ vigerske _DOT_ de'
114        MY_EMAIL_ADDR='stefan _AT_ vigerske _DOT_ de'
115        SEND_MAIL_TO_PROJECT_MANAGER=0
116
117
118#----------------------------------------------------------------------
119# DOWNLOAD_3RD_PARTY: 0 or 1.
120# Several COIN-OR projects provide scripts for downloading 3rd party
121# code that the project will use if it is available.  Some of
122# the this 3rd party code is distributed under various different
123# licenses. A 1 indicates that the script will download 3rd party
124# code if the COIN-OR project provides the script
125# ThirdParty/xxx/get.xxx where xxx is the name of the third party code
126#----------------------------------------------------------------------
127DOWNLOAD_3RD_PARTY=0
128if gethostname()=='ubuntu' :
129  DOWNLOAD_3RD_PARTY=1
130elif gethostname()=='math01.watson.ibm.com' :
131  DOWNLOAD_3RD_PARTY=1
132elif gethostname()=='JPF4' :
133  DOWNLOAD_3RD_PARTY=1
134elif gethostname()=='fitzgeralds' :
135  DOWNLOAD_3RD_PARTY=1
136elif gethostname()=='sol10vm' :
137  DOWNLOAD_3RD_PARTY=1
138
139
140#----------------------------------------------------------------------
141#On some systems the user might want to set extra options for the
142#configure script like compilers...
143#----------------------------------------------------------------------
144CONFIGURE_FLAGS = ''
145if gethostname()=='sol10vm' :
146  CONFIGURE_FLAGS = 'CC="gcc -m64" CXX="g++ -m64" F77="gfortran -m64" LDFLAGS="-lstdc++" ADD_CXXFLAGS="-Wno-conversion"'
147
148#----------------------------------------------------------------------
149# List of Projects to be processed by script
150#----------------------------------------------------------------------
151PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\
152            'Ipopt','Bonmin','FlopC++','OS','CppAD']
153
154
155PROJECTS = ['CoinUtils']
156
157
158#----------------------------------------------------------------------
159# For every project, indicate which svn versions are to be used.
160# Supported versions are: trunk & latestStable
161#----------------------------------------------------------------------
162PROJECT_VERSIONS = ['trunk','latestStable']
163
164#----------------------------------------------------------------------
165# For every project version, indicate all the ways the code is to
166# be built.
167# Presently, NoThirdParty is not yet working
168#----------------------------------------------------------------------
169BUILD_TYPES = [\
170              ['Default','ThirdParty'   ]\
171              ,['Debug',  'ThirdParty'   ]\
172              #,['Debug',  'NoThirdParty' ]\
173              ]
174
175BUILD_TYPES = [\
176              ['Default',  'NoThirdParty' ]\
177              ]               
178
179#----------------------------------------------------------------------
180# List of vpath directories and corresponding configure options
181# Setup as a dictionary
182#----------------------------------------------------------------------
183
184VPATH_DIRS = ['vpath', 'vpath-no_third_party']
185VPATH_CONFIG_ARGS = ['configure -C' ,\
186                     'configure COIN_SKIP_PROJECTS="Ipopt ThirdParty/ASL ThirdParty/Blas ThirdParty/Glpk ThirdParty/HSL ThirdParty/Lapack ThirdParty/Mumps"']
187
188# Perhaps use dictionaries
189VPATH_BUILD = {'vpath': 'configure -C' ,\
190               'vpath-no_third_party': 'configure COIN_SKIP_PROJECTS="Ipopt ThirdParty/ASL ThirdParty/Blas ThirdParty/Glpk ThirdParty/HSL ThirdParty/Lapack ThirdParty/Mumps"'}
191
192
193
194
195#NEW PARAMETER SETTINGS:
196
197
198##NIGHTLY_BUILD_ROOT_DIR = userParameters.data['NIGHTLY_BUILD_ROOT_DIR']
199##SMTP_SERVER_NAME = userParameters.data['SMTP_SERVER_NAME']
200##SMTP_SERVER_PORT = userParameters.data['SMTP_SERVER_PORT']
201##SMTP_SSL_SERVER = userParameters.data['SMTP_SSL_SERVER']
202##SMTP_USER_NAME = userParameters.data['SMTP_USER_NAME']
203##SMTP_PASSWORD_FILENAME = userParameters.data['SMTP_PASSWORD_FILENAME']
204##SENDER_EMAIL_ADDR = userParameters.data['SENDER_EMAIL_ADDR']
205##MY_EMAIL_ADDR =  userParameters.data['MY_EMAIL_ADDR']
206##SEND_MAIL_TO_PROJECT_MANAGER = userParameters.data['SEND_MAIL_TO_PROJECT_MANAGER']
207##SVNPATH_PREFIX = userParameters.data['SVNPATH_PREFIX']
208##DOWNLOAD_3RD_PARTY = userParameters.data['DOWNLOAD_3RD_PARTY']
209
Note: See TracBrowser for help on using the repository browser.