Changeset 640 for branches


Ignore:
Timestamp:
Oct 19, 2007 9:55:11 PM (12 years ago)
Author:
jpfasano
Message:

Added userConfig variable for deciding if 3rd party codes should be downloaded.

Location:
branches/testScripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBuserConfig.py

    r639 r640  
    3434  SVNPATH_PREFIX='/gsa/yktgsa/projects/o/oslos/local/bin'
    3535elif gethostname()=='JPF4' :
    36   SVNPATH_PREFIX = r'e:\cygwin\bin'
     36  SVNPATH_PREFIX = ''
    3737elif gethostname()=='kmartin-maclt.local' :
    3838  SVNPATH_PREFIX='/usr/local/bin'
     
    103103
    104104
     105#----------------------------------------------------------------------
     106# DOWNLOAD_3RD_PARTY: 0 or 1.
     107# Several COIN-OR projects provide scripts for downloading 3rd party
     108# code that the project will use if it is available.  Some of
     109# the this 3rd party code is distributed under various different
     110# licenses. A 1 indicates that the script will download 3rd party
     111# code if the COIN-OR project provides the script
     112# ThirdParty/xxx/get.xxx where xxx is the name of the third party code
     113#----------------------------------------------------------------------
     114DOWNLOAD_3RD_PARTY=0
     115if gethostname()=='ubuntu' :
     116  DOWNLOAD_3RD_PARTY=1
     117elif gethostname()=='math01.watson.ibm.com' :
     118  DOWNLOAD_3RD_PARTY=1
     119elif gethostname()=='JPF4' :
     120  DOWNLOAD_3RD_PARTY=1
     121
    105122
    106123#----------------------------------------------------------------------
  • branches/testScripts/nightlyBuild.py

    r637 r640  
    1313
    1414# TODO:
    15 #   -After "svn co" then get all 3rd party packages.
    1615#   -Get some information about the platform and put this in email failure message.
    1716#   -Implement Kipp's vpath (delete vpath instead of 'make distclean').
     
    7776  # If there is are third part apps, then get these apps
    7877  #---------------------------------------------------------------------
    79   thirdPartyBaseDir=os.path.join(projectCheckOutDir,'ThirdParty')
    80   if os.path.isdir(thirdPartyBaseDir) :
    81     thirdPartyDirs = os.listdir(thirdPartyBaseDir)
    82     for d in thirdPartyDirs :
    83       thirdPartyDir=os.path.join(thirdPartyBaseDir,d)
    84       install3rdPartyCmd=os.path.join(".","get."+d)
    85       os.chdir(thirdPartyDir)
    86       if os.path.isfile(install3rdPartyCmd) :
    87         NBlogMessages.writeMessage('  '+install3rdPartyCmd)
    88         NBosCommand.run(install3rdPartyCmd)
     78  if NBuserConfig.DOWNLOAD_3RD_PARTY :
     79    thirdPartyBaseDir=os.path.join(projectCheckOutDir,'ThirdParty')
     80    if os.path.isdir(thirdPartyBaseDir) :
     81      thirdPartyDirs = os.listdir(thirdPartyBaseDir)
     82      for d in thirdPartyDirs :
     83        thirdPartyDir=os.path.join(thirdPartyBaseDir,d)
     84        install3rdPartyCmd=os.path.join(".","get."+d)
     85        os.chdir(thirdPartyDir)
     86        if os.path.isfile(install3rdPartyCmd) :
     87          NBlogMessages.writeMessage('  '+install3rdPartyCmd)
     88          NBosCommand.run(install3rdPartyCmd)
    8989 
    9090  #---------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.