Beispiel #1
0
def git_merge(merge_branch):
    return ex.run_cmd('git merge %s' % merge_branch)
Beispiel #2
0
def git_remove_merge(merge_branch):
    return ex.run_cmd('git branch -D %s' % merge_branch)
Beispiel #3
0
def git_rebase_on_master():
    return ex.run_cmd('git rebase master')
Beispiel #4
0
def git_checkout_master():
    return ex.run_cmd('git checkout master')
Beispiel #5
0
def git_fetch_remote(fork_name, branch_name):
    remote_name = get_merge_remote_name(fork_name, branch_name)
    return ex.run_cmd('git fetch %s' % remote_name)
Beispiel #6
0
def git_checkout_for_merge(fork_name, branch_name):
    merge_branch = get_merge_branch_name(fork_name, branch_name)
    remote_name = get_merge_remote_name(fork_name, branch_name)
    return ex.run_cmd('git checkout -b %s %s/%s' %
                      (merge_branch, remote_name, branch_name))
Beispiel #7
0
def git_rebase_origin_master():
    return ex.run_cmd('git rebase origin/master')
Beispiel #8
0
def git_add_remote(fork_name, branch_name):
    remote_name = get_merge_remote_name(fork_name, branch_name)
    remote_url = get_repo_url(fork_name)
    return ex.run_cmd('git remote add %s %s' % (remote_name, remote_url))
Beispiel #9
0
def git_fetch_origin():
    return ex.run_cmd('git fetch origin')
Beispiel #10
0
def git_push():
    return ex.run_cmd('git push origin master')
Beispiel #11
0
def check_build():
    return (ex.run_cmd(BUILD_SCRIPT_DEBUG) or ex.run_cmd(BUILD_SCRIPT_RELEASE))
Beispiel #12
0
def git_remove_remote(fork_name, branch_name):
    remote_name = get_merge_remote_name(fork_name, branch_name)
    return ex.run_cmd('git remote remove %s' % remote_name)
Beispiel #13
0
def run_checktest():
    # iot.js executable
    iotjs = fs.join(build_root, 'iotjs', 'iotjs')
    return ex.run_cmd(path.CHECKTEST_PATH, [iotjs]) == 0