Ejemplo n.º 1
0
                toolchains = (getattr(TARGET_MAP[target_name], 'default_toolchain', 'ARM'),)
            else:
                toolchains = toolchain_list

            if options.toolchains:
                print "Only building using the following toolchains: %s" % (options.toolchains)
                toolchainSet = set(toolchains)
                toolchains = toolchainSet.intersection(set((options.toolchains).split(',')))

            for toolchain in toolchains:
                id = "%s::%s" % (target_name, toolchain)

                try:
                    built_mbed_lib = build_mbed_libs(TARGET_MAP[target_name], toolchain, verbose=options.verbose, jobs=options.jobs, report=build_report, properties=build_properties)

                except Exception, e:
                    print str(e)

    # Write summary of the builds
    if options.report_build_file_name:
        file_report_exporter = ReportExporter(ResultExporterType.JUNIT, package="build")
        file_report_exporter.report_to_file(build_report, options.report_build_file_name, test_suite_properties=build_properties)

    print "\n\nCompleted in: (%.2f)s" % (time() - start)

    print_report_exporter = ReportExporter(ResultExporterType.PRINT, package="build")
    status = print_report_exporter.report(build_report)

    if not status:
        sys.exit(1)
Ejemplo n.º 2
0
            toolchains = (getattr(TARGET_MAP[target_name], 'default_toolchain', 'ARM'),)
        else:
            toolchains = toolchain_list

        if options.toolchains:
            print "Only building using the following toolchains: %s" % (options.toolchains)
            toolchainSet = set(toolchains)
            toolchains = toolchainSet and set((options.toolchains).split(','))

        for toolchain in toolchains:
            id = "%s::%s" % (target_name, toolchain)

            try:
                built_mbed_lib = build_mbed_libs(TARGET_MAP[target_name], toolchain, verbose=options.verbose, jobs=options.jobs, report=report, properties=properties)

            except Exception, e:
                print str(e)

    # Write summary of the builds
    if options.report_build_file_name:
        file_report_exporter = ReportExporter(ResultExporterType.JUNIT, package="build")
        file_report_exporter.report_to_file(report, options.report_build_file_name, test_suite_properties=properties)

    print "\n\nCompleted in: (%.2f)s" % (time() - start)

    print_report_exporter = ReportExporter(ResultExporterType.PRINT, package="build")
    status = print_report_exporter.report(report)

    if not status:
        sys.exit(1)
Ejemplo n.º 3
0
                try:
                    built_mbed_lib = build_mbed_libs(
                        TARGET_MAP[target_name],
                        toolchain,
                        verbose=options.verbose,
                        jobs=options.jobs,
                        report=build_report,
                        properties=build_properties)

                except Exception, e:
                    print str(e)

    # Write summary of the builds
    if options.report_build_file_name:
        file_report_exporter = ReportExporter(ResultExporterType.JUNIT,
                                              package="build")
        file_report_exporter.report_to_file(
            build_report,
            options.report_build_file_name,
            test_suite_properties=build_properties)

    print "\n\nCompleted in: (%.2f)s" % (time() - start)

    print_report_exporter = ReportExporter(ResultExporterType.PRINT,
                                           package="build")
    status = print_report_exporter.report(build_report)

    if not status:
        sys.exit(1)
Ejemplo n.º 4
0
        for toolchain in toolchains:
            id = "%s::%s" % (target_name, toolchain)

            try:
                built_mbed_lib = build_mbed_libs(TARGET_MAP[target_name],
                                                 toolchain,
                                                 verbose=options.verbose,
                                                 jobs=options.jobs,
                                                 report=report,
                                                 properties=properties)

            except Exception, e:
                print str(e)

    # Write summary of the builds
    if options.report_build_file_name:
        file_report_exporter = ReportExporter(ResultExporterType.JUNIT,
                                              package="build")
        file_report_exporter.report_to_file(report,
                                            options.report_build_file_name,
                                            test_suite_properties=properties)

    print "\n\nCompleted in: (%.2f)s" % (time() - start)

    print_report_exporter = ReportExporter(ResultExporterType.PRINT,
                                           package="build")
    status = print_report_exporter.report(report)

    if not status:
        sys.exit(1)