The main method, which executes all build steps and runs the tests.
(parsed_args)
| 584 | |
| 585 | |
| 586 | def Main(parsed_args): |
| 587 | """The main method, which executes all build steps and runs the tests.""" |
| 588 | logging.basicConfig( |
| 589 | format='[[%(filename)s %(funcName)s]] - %(message)s', |
| 590 | level=(logging.ERROR if os.environ.get('CI') else logging.INFO)) |
| 591 | EnsureNodeJsIsInstalled() |
| 592 | CheckPrereqs() |
| 593 | InstallNodeDependencies() |
| 594 | SetupOutDir(out_dir='dist') |
| 595 | GenValidatorProtoascii(out_dir='dist') |
| 596 | GenValidatorPb2Py(out_dir='dist') |
| 597 | GenValidatorProtoGeneratedJs(out_dir='dist') |
| 598 | GenValidatorGeneratedJs(out_dir='dist') |
| 599 | CompileValidatorMinified(out_dir='dist') |
| 600 | RunSmokeTest(out_dir='dist') |
| 601 | RunIndexTest() |
| 602 | CompileValidatorTestMinified(out_dir='dist') |
| 603 | CompileHtmlparserTestMinified(out_dir='dist') |
| 604 | CompileParseCssTestMinified(out_dir='dist') |
| 605 | CompileParseUrlTestMinified(out_dir='dist') |
| 606 | CompileAmp4AdsParseCssTestMinified(out_dir='dist') |
| 607 | CompileKeyframesParseCssTestMinified(out_dir='dist') |
| 608 | CompileParseSrcsetTestMinified(out_dir='dist') |
| 609 | GenerateTestRunner(out_dir='dist') |
| 610 | RunTests(update_tests=parsed_args.update_tests, out_dir='dist') |
| 611 | |
| 612 | if __name__ == '__main__': |
| 613 | parser = argparse.ArgumentParser( |
no test coverage detected