source: branches/testScripts/NBuserConfig.py @ 652

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

add Bonmin

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