Exemplo n.º 1
0
Arquivo: build.py Projeto: K4zuki/mbed
                                  silent=options.silent,
                                  clean=options.clean,
                                  macros=options.macros,
                                  jobs=options.jobs)
                    if lib_build_res:
                        successes.append(tt_id)
                    else:
                        skipped.append(tt_id)
                except Exception, e:
                    if options.verbose:
                        import traceback
                        traceback.print_exc(file=sys.stdout)
                        sys.exit(1)
                    failures.append(tt_id)
                    print e

    # Write summary of the builds
    print
    print "Completed in: (%.2f)s" % (time() - start)
    print

    for report, report_name in [(successes, "Build successes:"),
                                (skipped, "Build skipped:"),
                                (failures, "Build failures:"),
                               ]:
        if report:
            print print_build_results(report, report_name),

    if failures:
        sys.exit(1)
Exemplo n.º 2
0
                    lib_build_res = build_mbed_libs(mcu, toolchain, options=options.options,
                                                    notify=notify, verbose=options.verbose, jobs=options.jobs, clean=options.clean,
                                                    macros=options.macros)
                    for lib_id in libraries:
                        notify = print_notify_verbose if options.extra_verbose_notify else None  # Special notify for CI (more verbose)
                        build_lib(lib_id, mcu, toolchain, options=options.options,
                                  notify=notify, verbose=options.verbose, clean=options.clean,
                                  macros=options.macros, jobs=options.jobs)
                    if lib_build_res:
                        successes.append(tt_id)
                    else:
                        skipped.append(tt_id)
                except Exception, e:
                    if options.verbose:
                        import traceback
                        traceback.print_exc(file=sys.stdout)
                        sys.exit(1)
                    failures.append(tt_id)
                    print e

    # Write summary of the builds
    print "Completed in: (%.2f)s" % (time() - start)
    print

    print print_build_results(successes, "Build successes:"),
    print print_build_results(skipped, "Build skipped:"),
    print print_build_results(failures, "Build failures:"),

    if failures:
        sys.exit(1)
Exemplo n.º 3
0
Arquivo: build.py Projeto: slodt/mbed
                                  clean=options.clean,
                                  macros=options.macros,
                                  jobs=options.jobs)
                    if lib_build_res:
                        successes.append(tt_id)
                    else:
                        skipped.append(tt_id)
                except Exception, e:
                    if options.verbose:
                        import traceback
                        traceback.print_exc(file=sys.stdout)
                        sys.exit(1)
                    failures.append(tt_id)
                    print e

    # Write summary of the builds
    print
    print "Completed in: (%.2f)s" % (time() - start)
    print

    for report, report_name in [
        (successes, "Build successes:"),
        (skipped, "Build skipped:"),
        (failures, "Build failures:"),
    ]:
        if report:
            print print_build_results(report, report_name),

    if failures:
        sys.exit(1)