provision: Include check for GitHub Action along with CircleCI.

This commit is contained in:
Priyank Patel 2020-06-23 17:00:13 +00:00 committed by Tim Abbott
parent a09ee7818c
commit b1c0c13008
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ if TYPE_CHECKING:
VAR_DIR_PATH = os.path.join(ZULIP_PATH, 'var') VAR_DIR_PATH = os.path.join(ZULIP_PATH, 'var')
is_circleci = 'CIRCLECI' in os.environ CONTINUOUS_INTEGRATION = 'GITHUB_ACTIONS' in os.environ or 'CIRCLECI' in os.environ
if not os.path.exists(os.path.join(ZULIP_PATH, ".git")): if not os.path.exists(os.path.join(ZULIP_PATH, ".git")):
print(FAIL + "Error: No Zulip git repository present!" + ENDC) print(FAIL + "Error: No Zulip git repository present!" + ENDC)
@ -398,7 +398,7 @@ def main(options: argparse.Namespace) -> "NoReturn":
run_as_root(["cp", REPO_STOPWORDS_PATH, TSEARCH_STOPWORDS_PATH]) run_as_root(["cp", REPO_STOPWORDS_PATH, TSEARCH_STOPWORDS_PATH])
if is_circleci and not options.is_build_release_tarball_only: if CONTINUOUS_INTEGRATION and not options.is_build_release_tarball_only:
run_as_root(["service", "redis-server", "restart"]) run_as_root(["service", "redis-server", "restart"])
run_as_root(["service", "memcached", "restart"]) run_as_root(["service", "memcached", "restart"])
run_as_root(["service", "rabbitmq-server", "restart"]) run_as_root(["service", "rabbitmq-server", "restart"])