561 from devtools.selenium_testing.runtests import parseArgs, start_tests, close_tests
562 args = parseArgs(parser)
563 try:
564 start_tests(args.browser, args.headless, args.keepopen, args.site, args.board, "html/static/notbanned.png", args.singletest)565 except KeyboardInterrupt:
566 print("Tests interrupted by KeyboardInterrupt, exiting")
567 except Exception:
521 action="store_true",
522 help="create symbolic links instead of copying the files (may require admin/root privileges)")
523 args = parser.parse_args()
524 install(args.prefix, args.documentroot, args.symlinks, args.js, args.css, args.templates)525 elif action == "js":
526 parser.add_argument("--watch", "-w",
527 action="store_true",
519 help="install files in ./html/ to this directory to be requested by a browser")
520 parser.add_argument("--symlinks",
521 action="store_true",
522 help="create symbolic links instead of copying the files (may require admin/root privileges)")523 args = parser.parse_args()
524 install(args.prefix, args.documentroot, args.symlinks, args.js, args.css, args.templates)
525 elif action == "js":
467 set_vars()
468
469 valid_actions = (
470 "build", "clean", "dependencies", "docker", "install", "js", "release", "sass", "test", "selenium"471 )
472 parser = argparse.ArgumentParser(description="gochan build script")
473 parser.add_argument("action", nargs=1, default="build", choices=valid_actions)
437
438
439def sass(watch=False):
440 npm_cmd = ["npm", "--prefix", "frontend/", "run", "watch-sass" if watch else "build-sass"]441 status = run_cmd(npm_cmd, True, True, True)[1]
442 if status != 0:
443 print("Failed running sass with status", status)
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs