Example #1
0
def integrate(user, project, implementations):
    "apply_subtasks permanently"
    project_vfs=project_by_name(user, project)
    implementations=proj_sequence(implementations)
    tasktools.apply_subtasks(project_vfs, implementations)
    #store information about this build.....
    pass
Example #2
0
def build(user, project, implementations):
    buildname=str(uuid4())#unical random name
    path=buildsdir+buildname
    build_vfs=vfs.DiskVFS(path)
    path=usersdir+user+'/'+project
    project_vfs=vfs.DiskVFS(path)
    #copy project_vfs => build_vfs:
    build_vfs.clone(project_vfs)
    #apply_subtasks in a temporary copy of the project
    implementations=proj_sequence(implementations)
    tasktools.apply_subtasks(build_vfs, implementations)
    #store buid info in db....
    return buildname