コード例 #1
0
ファイル: distro.py プロジェクト: tylerjw/buildbot-ros
def testbuilders_from_rosdistro(c, oracle, distro, builders, tokens = None):
    tokens = tokens or dict()

    source = get_source_file(oracle.getIndex(), distro)
    build_files = get_source_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in source.repositories.keys():
        if source.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        for build_file in build_files:
            added_pr_builder = False
            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):
                        print('Configuring ros_testbuild job for: %s_%s_%s' % (name, code_name, arch))
                        jobs.append(ros_testbuild(c,
                                                  name,
                                                  source.repositories[name].url,
                                                  source.repositories[name].version,  # branch
                                                  code_name,
                                                  arch,
                                                  distro,
                                                  builders,
                                                  oracle.getOtherMirror('source', distro, code_name),
                                                  oracle.getKeys('source', distro),
                                                  ))
                        if not added_pr_builder:
                            try:
                                token = tokens[name]
                                print('Configuring Pull Request builder for: %s_%s_%s' % (name, code_name, arch))
                                jobs.append(ros_testbuild(c,
                                                          name,
                                                          source.repositories[name].url,
                                                          source.repositories[name].version,  # branch
                                                          code_name,
                                                          arch,
                                                          distro,
                                                          builders,
                                                          oracle.getOtherMirror('source', distro, code_name),
                                                          oracle.getKeys('source', distro),
                                                          token=token
                                                          ))
                            except KeyError:
                                print("Not adding Pull Request builder for %s" % name)
                            added_pr_builder = True
    return jobs
コード例 #2
0
def testbuilders_from_rosdistro(c, oracle, distro, builders, tokens = None):
    tokens = tokens or dict()

    source = get_source_file(oracle.getIndex(), distro)
    build_files = get_source_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in source.repositories.keys():
        if source.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        for build_file in build_files:
            added_pr_builder = False
            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):
                        print('Configuring ros_testbuild job for: %s_%s_%s' % (name, code_name, arch))
                        jobs.append(ros_testbuild(c,
                                                  name,
                                                  source.repositories[name].url,
                                                  source.repositories[name].version,  # branch
                                                  code_name,
                                                  arch,
                                                  distro,
                                                  builders,
                                                  oracle.getOtherMirror('source', distro, code_name),
                                                  oracle.getKeys('source', distro),
                                                  ))
                        if not added_pr_builder:
                            try:
                                token = tokens[name]
                                print('Configuring Pull Request builder for: %s_%s_%s' % (name, code_name, arch))
                                jobs.append(ros_testbuild(c,
                                                          name,
                                                          source.repositories[name].url,
                                                          source.repositories[name].version,  # branch
                                                          code_name,
                                                          arch,
                                                          distro,
                                                          builders,
                                                          oracle.getOtherMirror('source', distro, code_name),
                                                          oracle.getKeys('source', distro),
                                                          token=token
                                                          ))
                            except KeyError:
                                print("Not adding Pull Request builder for %s" % name)
                            added_pr_builder = True
    return jobs
コード例 #3
0
ファイル: distro.py プロジェクト: ugocupcic/buildbot-ros
def testbuilders_from_rosdistro(c, oracle, distro, builders):
    source = get_source_file(oracle.getIndex(), distro)
    build_files = get_source_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in source.repositories.keys():
        if source.repositories[name].type != 'git':
            print(
                'Cannot configure ros_debbuild for %s, as it is not a git repository'
                % name)
            continue
        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):
                        print('Configuring ros_testbuild job for: %s_%s_%s' %
                              (name, code_name, arch))
                        jobs.append(
                            ros_testbuild(
                                c,
                                name,
                                source.repositories[name].url,
                                source.repositories[name].version,  # branch
                                code_name,
                                arch,
                                distro,
                                builders,
                                oracle.getOtherMirror('source', distro,
                                                      code_name),
                                oracle.getKeys('source', distro),
                            ))
    return jobs
コード例 #4
0
ファイル: distro.py プロジェクト: imclab/buildbot-ros
def testbuilders_from_rosdistro(c, oracle, distro, builders):
    source = get_source_file(oracle.getIndex(), distro)
    build_files = get_source_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in source.repositories.keys():
        if source.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        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):
                        print('Configuring ros_testbuild job for: %s_%s_%s' % (name, code_name, arch))
                        jobs.append(ros_testbuild(c,
                                                  name,
                                                  source.repositories[name].url,
                                                  source.repositories[name].version,  # branch
                                                  code_name,
                                                  arch,
                                                  distro,
                                                  builders,
                                                  oracle.getOtherMirror('source', distro, code_name),
                                                  oracle.getKeys('source', distro),
                                                  ))
    return jobs