import sys, os, string, time, shutil #import ReleaseForge from taskrunner import Job, Task, TaskRunner, Config # read in the build settings... CFGFILE = "./scripts/build-environ.cfg" config = Config() config.read(CFGFILE) config.WXWIN = os.path.abspath("..") class Job(Job): LOGBASE = "./tmp" # ensure the staging area exists if not os.path.exists(config.STAGING_DIR): os.makedirs(config.STAGING_DIR) # Figure out the wxPython version number, possibly adjusted for being a daily build if config.KIND == "daily": t = time.localtime() config.DAILY = time.strftime( "%Y%m%d") # should it include the hour too? 2-digit year? file("DAILY_BUILD", "w").write(config.DAILY) # stamp the date on daily builds config.BUILD_VERSION = config.BUILD_VERSION + "-" + config.DAILY
import sys, os, string, time, shutil #import ReleaseForge from taskrunner import Job, Task, TaskRunner, Config # read in the build settings... CFGFILE = "./scripts/build-environ.cfg" config = Config() config.read(CFGFILE) config.WXWIN = os.path.abspath("..") class Job(Job): LOGBASE = "./tmp" # ensure the staging area exists if not os.path.exists(config.STAGING_DIR): os.makedirs(config.STAGING_DIR) # Figure out the wxPython version number, possibly adjusted for being a daily build if config.KIND == "daily": t = time.localtime() config.DAILY = time.strftime("%Y%m%d") # should it include the hour too? 2-digit year? file("DAILY_BUILD", "w").write(config.DAILY) # stamp the date on daily builds config.BUILD_VERSION=config.BUILD_VERSION + "-" + config.DAILY # Let the user override build machine names, etc., etc. with their own # config file settings myconfig = None
#import ReleaseForge root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) externals_dir = os.path.join(root_dir, "externals") sys.path.append(root_dir) sys.path.append(externals_dir) from taskrunner import Job, Task, TaskRunner, TaskRunnerThread, Config import glob import version # read in the build settings... CFGFILE = "./build-environ.cfg" config = Config() config.read(CFGFILE) package_exts = [".dmg", ".exe", ".rpm", ".tar.gz", ".tar.bz", ".tgz", ".zip"] def run(command): result = os.system(command) if result != 0: #print "ERROR: %s failed." % command raise Exception("Command %s failed." % command) def getDistribFiles(): # get a list of files that should be uploaded by checking the deliver directory filelist = [] for ext in package_exts: filelist += glob.glob("deliver/*"+ext)