source: branches/testScripts/NBuserConfig.py @ 656

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

add my configuration for sol10vm

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