From af2c21f84e5ee45c650f198d14c301d0f6754eb9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 4 Oct 2013 14:08:19 -0400 Subject: [PATCH] Rename humbug => zulip in tddium integration. (imported from commit f48dd9f7ddc8221c90373300eedf87077d9e5874) --- bots/tddium-notify-humbug | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bots/tddium-notify-humbug b/bots/tddium-notify-humbug index b3d91f4..0dc7995 100755 --- a/bots/tddium-notify-humbug +++ b/bots/tddium-notify-humbug @@ -30,27 +30,27 @@ from os import path, environ # # Expects Tddium environment variables plus: # -# HUMBUG_USER e.g. builds@solanolabs.com -# HUMBUG_API_KEY e.g. 00000000000000000000000000000000 -# HUMBUG_STREAM e.g. builds +# ZULIP_USER e.g. builds@solanolabs.com +# ZULIP_API_KEY e.g. 00000000000000000000000000000000 +# ZULIP_STREAM e.g. builds # -# If HUMBUG_API_KEY is not specified, it will be read from -# ~/.humbug-api-key. +# If ZULIP_API_KEY is not specified, it will be read from +# ~/.zulip-api-key. -# Path to the directory where humbug.py lives. +# Path to the directory where zulip.py lives. # Here we assume it's in the parent of the directory # where this script lives. -humbug_directory = path.join(path.dirname(__file__), '../api') +zulip_directory = path.join(path.dirname(__file__), '../api') -sys.path.append(humbug_directory) +sys.path.append(zulip_directory) import zulip client = zulip.Client( - email = environ['HUMBUG_USER'], - api_key = environ.get('HUMBUG_API_KEY')) + email = environ['ZULIP_USER'], + api_key = environ.get('ZULIP_API_KEY')) tddium_server = environ.get('TDDIUM_API_SERVER', 'api.tddium.com') report_url = 'https://%s/1/reports/%s' % (tddium_server, environ['TDDIUM_SESSION_ID']) @@ -58,7 +58,7 @@ repo_name = path.basename(environ['TDDIUM_REPO_ROOT']) result = client.send_message(dict( type = 'stream', - to = environ['HUMBUG_STREAM'], + to = environ['ZULIP_STREAM'], subject = 'build for ' + repo_name, content = '%s [%s](%s)' % (repo_name, environ['TDDIUM_BUILD_STATUS'], report_url)))