1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | from socket import gethostname |
---|
4 | |
---|
5 | #---------------------------------------------------------------------- |
---|
6 | # This file contains variables that person running this scirpt |
---|
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 | #---------------------------------------------------------------------- |
---|
17 | NIGHTLY_BUILD_ROOT_DIR = 'xxx' |
---|
18 | if gethostname()=='ubuntu' : |
---|
19 | NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN' |
---|
20 | elif gethostname()=='math01.watson.ibm.com' : |
---|
21 | NIGHTLY_BUILD_ROOT_DIR = '/u/jpfasano/COIN/nbTest' |
---|
22 | elif gethostname()=='JPF4' : |
---|
23 | NIGHTLY_BUILD_ROOT_DIR = 'd:/nbTest' |
---|
24 | elif gethostname()=='kmartin-maclt.local' : |
---|
25 | NIGHTLY_BUILD_ROOT_DIR = '/Users/kmartin/COIN' |
---|
26 | |
---|
27 | |
---|
28 | #---------------------------------------------------------------------- |
---|
29 | # Define directory where svn is located. |
---|
30 | # If svn is in the default path, then this can be set to an empty string |
---|
31 | #---------------------------------------------------------------------- |
---|
32 | SVNPATH_PREFIX='' |
---|
33 | if gethostname()=='math01.watson.ibm.com' : |
---|
34 | SVNPATH_PREFIX='/gsa/yktgsa/projects/o/oslos/local/bin' |
---|
35 | elif gethostname()=='JPF4' : |
---|
36 | SVNPATH_PREFIX = r'e:\cygwin\bin' |
---|
37 | elif gethostname()=='kmartin-maclt.local' : |
---|
38 | SVNPATH_PREFIX='/usr/local/bin' |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | #---------------------------------------------------------------------- |
---|
43 | # Values for sending mail: |
---|
44 | # SMTP_SERVER_NAME: name of smtp server. For gmail server |
---|
45 | # this is smtp.gmail.com |
---|
46 | # SMTP_SERVER_PORT: port number of the smtp server. This is typically 25, |
---|
47 | # but for gmail server it is 587. |
---|
48 | # SMTP_SSL_SERVER: 0 or 1. If 1 then SMTP uses SSL (sometimes called startltls). |
---|
49 | # For gmail this is 1. |
---|
50 | # SMTP_USER_NAME: name of authorized user on server. If using gmail server |
---|
51 | # this is gmail_userid@gmail.com which is coded as |
---|
52 | # 'gmail_userid _AT_ gmail _DOT_ com. |
---|
53 | # SMTP_PASSWORD_FILENAME: name of file containing smtp user's password |
---|
54 | # SENDER_EMAIL_ADDR: email sent by this script will be from this address |
---|
55 | # MY_EMAIL_ADDR: All problems detected by the script will be sent to |
---|
56 | # this email address. The intention is for this to be |
---|
57 | # the email address of the person running this script |
---|
58 | # SEND_MAIL_TO_PROJECT_MANAGER: 0 or 1. If 1 then any problems |
---|
59 | # detected are sent to MY_EMAIL_ADDRESS and the |
---|
60 | # project manager. |
---|
61 | #---------------------------------------------------------------------- |
---|
62 | SMTP_SERVER_NAME = 'xxx.smtp.server.name' |
---|
63 | SMTP_SERVER_PORT =25 |
---|
64 | SMTP_SSL_SERVER = 0 |
---|
65 | SMTP_USER_NAME = 'xxxx' |
---|
66 | SMTP_PASSWORD_FILENAME = '/xxx/yyy/smtpPassWordFile' |
---|
67 | |
---|
68 | SENDER_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu' |
---|
69 | MY_EMAIL_ADDR='xxx _AT_ yyyy _DOT_ edu' |
---|
70 | SEND_MAIL_TO_PROJECT_MANAGER=0 |
---|
71 | if gethostname()=='ubuntu' or \ |
---|
72 | gethostname()=='math01.watson.ibm.com' or\ |
---|
73 | gethostname()=='JPF4' : |
---|
74 | #SMTP_SERVER_NAME = 'outgoing.verizon.net' |
---|
75 | #SMTP_SERVER_PORT = 25 |
---|
76 | #SMTP_SSL_SERVER = 0 |
---|
77 | #SMTP_USER_NAME = 'jpfasano' |
---|
78 | |
---|
79 | SMTP_SERVER_NAME = 'smtp.gmail.com' |
---|
80 | SMTP_SERVER_PORT = 587 |
---|
81 | SMTP_SSL_SERVER = 1 |
---|
82 | SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com' |
---|
83 | if gethostname()=='ubuntu' : |
---|
84 | SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile' |
---|
85 | elif gethostname()=='math01.watson.ibm.com' : |
---|
86 | SMTP_PASSWORD_FILENAME = '/u/jpfasano/COIN/bin/smtpPwFile' |
---|
87 | else : |
---|
88 | SMTP_PASSWORD_FILENAME = 'c:\smtpPwFile.txt' |
---|
89 | |
---|
90 | SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net' |
---|
91 | MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com' |
---|
92 | SEND_MAIL_TO_PROJECT_MANAGER=0 |
---|
93 | elif gethostname()=='kmartin-maclt.local' : |
---|
94 | SMTP_SERVER_NAME = 'gsbims.uchicago.edu' |
---|
95 | SMTP_SERVER_PORT =587 |
---|
96 | SMTP_SSL_SERVER = 0 |
---|
97 | SMTP_USER_NAME = 'kmartin' |
---|
98 | SMTP_PASSWORD_FILENAME = '/Users/kmartin/passwd' |
---|
99 | |
---|
100 | SENDER_EMAIL_ADDR='kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu' |
---|
101 | MY_EMAIL_ADDR='kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu' |
---|
102 | SEND_MAIL_TO_PROJECT_MANAGER=0 |
---|
103 | |
---|
104 | |
---|
105 | |
---|
106 | #---------------------------------------------------------------------- |
---|
107 | # List of Projects to be processed by script |
---|
108 | #---------------------------------------------------------------------- |
---|
109 | PROJECTS = ['CoinUtils','DyLP','Clp','SYMPHONY','Vol','Osi','Cgl','Cbc',\ |
---|
110 | 'FlopC++','Ipopt','OS','CppAD'] |
---|
111 | |
---|
112 | PROJECTS = ['FlopC++','Ipopt','OS','CppAD'] |
---|
113 | |
---|