source: branches/testScripts/NBuserConfig.py @ 670

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

Moved my stuff to new config file.

  • Property svn:executable set to *
File size: 5.6 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'
15
16
17#----------------------------------------------------------------------
18# LOGPRINT:
19#   switch for logoutput to stdout. If set to 1 (default) log will go to
20#   stdout, if set to 0, then not.
21# LOGFILE:
22#   If not empty, then log messages will go to this file.
23#   If LOGPRINT is 1, then log messages will go to stdout as well.
24#   The LOGFILE will be used relative to the NIGHTLY_BUILD_ROOT_DIR, i.e.,
25#   log will be written into NIGHTLY_BUILD_ROOT_DIR+'/'+LOGFILE
26#----------------------------------------------------------------------
27
28LOGPRINT='1'
29LOGFILE=''
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=''
36
37
38 
39
40
41#----------------------------------------------------------------------
42# Values for sending mail:
43#  SMTP_SERVER_NAME: name of smtp server. For gmail server
44#                 this is smtp.gmail.com
45#  SMTP_SERVER_PORT: port number of the smtp server. This is typically 25,
46#                 but for gmail server it is 587.
47#  SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls).
48#                 For gmail this is 1.
49#  SMTP_USER_NAME: name of authorized user on server. If using gmail server
50#                 this is gmail_userid@gmail.com which is coded as
51#                 'gmail_userid _AT_ gmail _DOT_ com. 
52#  SMTP_PASSWORD_FILENAME: name of file containing smtp user's password
53#  SENDER_EMAIL_ADDR: email sent by this script will be from this address
54#  MY_EMAIL_ADDR: All problems detected by the script will be sent to
55#                 this email address. The intention is for this to be
56#                 the email address of the person running this script
57#  SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems
58#                 detected are sent to MY_EMAIL_ADDRESS and the
59#                 project manager.
60#----------------------------------------------------------------------
61SMTP_SERVER_NAME = 'xxx.smtp.server.name'
62SMTP_SERVER_PORT =25
63SMTP_SSL_SERVER = 0
64SMTP_USER_NAME = 'xxxx'
65SMTP_PASSWORD_FILENAME = '/xxx/yyy/smtpPassWordFile'
66
67SENDER_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
68MY_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu'
69SEND_MAIL_TO_PROJECT_MANAGER=0
70
71
72
73#----------------------------------------------------------------------
74# DOWNLOAD_3RD_PARTY: 0 or 1.
75# Several COIN-OR projects provide scripts for downloading 3rd party
76# code that the project will use if it is available.  Some of
77# the this 3rd party code is distributed under various different
78# licenses. A 1 indicates that the script will download 3rd party
79# code if the COIN-OR project provides the script
80# ThirdParty/xxx/get.xxx where xxx is the name of the third party code
81#----------------------------------------------------------------------
82DOWNLOAD_3RD_PARTY=0
83
84
85
86#----------------------------------------------------------------------
87#On some systems the user might want to set extra options for the
88#configure script like compilers...
89#----------------------------------------------------------------------
90CONFIGURE_FLAGS = ''
91
92#----------------------------------------------------------------------
93# List of Projects to be processed by script
94#----------------------------------------------------------------------
95PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\
96            'Ipopt','Bonmin','FlopC++','OS']
97
98
99PROJECTS = ['CoinUtils']
100
101
102#----------------------------------------------------------------------
103# For every project, indicate which svn versions are to be used.
104# Supported versions are: trunk & latestStable
105#----------------------------------------------------------------------
106PROJECT_VERSIONS = ['trunk','latestStable']
107
108#----------------------------------------------------------------------
109# For every project version, indicate all the ways the code is to
110# be built.
111# Presently, NoThirdParty is not yet working
112#----------------------------------------------------------------------
113BUILD_TYPES = [\
114              ['Default','ThirdParty'   ]\
115              ,['Debug',  'ThirdParty'   ]\
116              ,['Debug',  'NoThirdParty' ]\
117              ]
118
119BUILD_TYPES = [\
120              ['Default',  'NoThirdParty' ]\
121              ]               
122
123
124#NEW PARAMETER SETTINGS:
125
126NIGHTLY_BUILD_ROOT_DIR = userParameters.data['NIGHTLY_BUILD_ROOT_DIR']
127SMTP_SERVER_NAME = userParameters.data['SMTP_SERVER_NAME']
128SMTP_SERVER_PORT = userParameters.data['SMTP_SERVER_PORT']
129SMTP_SSL_SERVER = userParameters.data['SMTP_SSL_SERVER']
130SMTP_USER_NAME = userParameters.data['SMTP_USER_NAME']
131SMTP_PASSWORD_FILENAME = userParameters.data['SMTP_PASSWORD_FILENAME']
132SENDER_EMAIL_ADDR = userParameters.data['SENDER_EMAIL_ADDR']
133MY_EMAIL_ADDR =  userParameters.data['MY_EMAIL_ADDR']
134SEND_MAIL_TO_PROJECT_MANAGER = userParameters.data['SEND_MAIL_TO_PROJECT_MANAGER']
135SVNPATH_PREFIX = userParameters.data['SVNPATH_PREFIX']
136DOWNLOAD_3RD_PARTY = userParameters.data['DOWNLOAD_3RD_PARTY'] 
137CONFIGURE_FLAGS = userParameters.data['CONFIGURE_FLAGS'] 
138LOGFILE = userParameters.data['LOGFILE'] 
139LOGPRINT = userParameters.data['LOGPRINT'] 
Note: See TracBrowser for help on using the repository browser.