MCPcopy
hub / github.com/ampproject/amphtml / Main

Function Main

validator/build.py:586–610  ·  view source on GitHub ↗

The main method, which executes all build steps and runs the tests.

(parsed_args)

Source from the content-addressed store, hash-verified

584
585
586def 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
612if __name__ == '__main__':
613 parser = argparse.ArgumentParser(

Callers 1

build.pyFile · 0.70

Calls 15

EnsureNodeJsIsInstalledFunction · 0.85
GenValidatorProtoasciiFunction · 0.85
GenValidatorPb2PyFunction · 0.85
GenValidatorGeneratedJsFunction · 0.85
CompileValidatorMinifiedFunction · 0.85
RunSmokeTestFunction · 0.85
RunIndexTestFunction · 0.85

Tested by

no test coverage detected