コード例 #1
0
ファイル: build_controller.py プロジェクト: Bluehorn/wxPython
# so that people can have different configs for different builds

# prepare the environment file
config_env = config.asDict()
config_env.update(os.environ)
if myconfig:
    config_env.update(myconfig.asDict())
    
tasks = Task([ Job("pre-flight", "./scripts/pre-flight.sh", env=config_env), 
               Job("win_build", "./scripts/build-windows.sh", env=config_env),
               Job("lin_build", "./scripts/build-linux.sh", env=config_env),
               Job("mac_build", "./scripts/build-mac.sh", env=config_env),
             ])
             
print "Build getting started at: ", time.ctime()


# Run the first task, which will create the docs and sources tarballs
tr = TaskRunner(tasks)
rc = tr.run()

if rc == 0 and config.delete_temps == "yes":
    shutil.rmtree(config.WX_TEMP_DIR)

# cleanup the DAILY_BUILD file
if config.KIND == "daily":
    os.unlink("DAILY_BUILD")
    
print "Build finished at: ", time.ctime()
sys.exit(0)
コード例 #2
0
# so that people can have different configs for different builds

# prepare the environment file
config_env = config.asDict()
config_env.update(os.environ)
if myconfig:
    config_env.update(myconfig.asDict())

tasks = Task([
    Job("pre-flight", "./scripts/pre-flight.sh", env=config_env),
    Job("win_build", "./scripts/build-windows.sh", env=config_env),
    Job("lin_build", "./scripts/build-linux.sh", env=config_env),
    Job("mac_build", "./scripts/build-mac.sh", env=config_env),
])

print "Build getting started at: ", time.ctime()

# Run the first task, which will create the docs and sources tarballs
tr = TaskRunner(tasks)
rc = tr.run()

if rc == 0 and config.delete_temps == "yes":
    shutil.rmtree(config.WX_TEMP_DIR)

# cleanup the DAILY_BUILD file
if config.KIND == "daily":
    os.unlink("DAILY_BUILD")

print "Build finished at: ", time.ctime()
sys.exit(0)