provision: Generate static bots files using a function call.

This shaves about 350ms from the no-op provision runtime.

Fixes #10990.
This commit is contained in:
Sumanth V Rao 2018-12-09 20:48:49 +05:30 committed by Tim Abbott
parent cae718f184
commit 7d12e2019d
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ from version import PROVISION_VERSION
if False:
from typing import Any
from tools.setup.generate_zulip_bots_static_files import generate_zulip_bots_static_files
SUPPORTED_PLATFORMS = {
"Ubuntu": [
@ -299,7 +300,7 @@ def main(options):
run(["tools/setup/emoji/build_emoji"])
# copy over static files from the zulip_bots package
run(["tools/setup/generate_zulip_bots_static_files"])
generate_zulip_bots_static_files()
webfont_paths = ["tools/setup/generate-custom-icon-webfont", "static/icons/fonts/template.hbs"]
webfont_paths += glob.glob('static/assets/icons/*')