예제 #1
0
def test_get_source_build_files():
    url = 'file://' + FILES_DIR + '/index_v2.yaml'
    i = get_index(url)
    files = get_source_build_files(i, 'foo')
    assert len(files) == 1
    build_file = files[0]
    assert build_file.jenkins_job_timeout == 23
예제 #2
0
def test_get_source_build_files():
    url = 'file://' + FILES_DIR + '/index_v2.yaml'
    i = get_index(url)
    files = get_source_build_files(i, 'foo')
    assert len(files) == 1
    build_file = files[0]
    assert build_file.jenkins_job_timeout == 23
예제 #3
0
def make_build_triggerer(c, oracle, distro, builders):
    build_files = get_source_build_files(oracle.getIndex(), distro)
    jobs = list()

    for build_file in build_files:
        for os in build_file.get_target_os_names():
            for code_name in build_file.get_target_os_code_names(os):
                for arch in build_file.get_target_arches(os, code_name):
                    jobs.append(
                        build_triggerer(c, code_name, arch, distro, builders,
                                        oracle.getOrderedRepositories(distro)))
    return jobs