Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 2ea53e7

Browse files
author
bors-servo
authored
Auto merge of #192 - Manishearth:https, r=jdm
Remove travis webhook We use the status API on this repo <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/homu/192) <!-- Reviewable:end -->
2 parents dfefeb7 + 4abd57b commit 2ea53e7

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ install:
1616
script:
1717
- flake8 homu
1818
- python -m unittest discover tests
19-
notifications:
20-
webhooks: http://build.servo.org:54856/travis

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ the name of the repository you are configuring homu for.
8686
existing account. In the [account settings][settings], go to "OAuth
8787
applications" and create a new application:
8888
- Make note of the "Client ID" and "Client Secret"; you will need to put them in
89-
your `cgf.toml`.
89+
your `cfg.toml`.
9090
- The OAuth Callback URL should be `http://HOST:PORT/callback`.
9191
- The homepage URL isn't necessary; you could set `http://HOST:PORT/`.
9292

homu/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ def start_build(state, repo_cfgs, buildbot_slots, logger, db, git_cfg):
10471047
builders += ['checks-' + key for key, value in repo_cfg['checks'].items() if 'name' in value] # noqa
10481048
only_status_builders = False
10491049

1050-
if len(builders) is 0:
1050+
if len(builders) == 0:
10511051
raise RuntimeError('Invalid configuration')
10521052

10531053
lazy_debug(logger, lambda: "start_build: builders={!r}".format(builders))
@@ -1494,7 +1494,7 @@ def main():
14941494
builders += ['status-' + key for key, value in repo_cfg['status'].items() if 'context' in value] # noqa
14951495
if 'checks' in repo_cfg:
14961496
builders += ['checks-' + key for key, value in repo_cfg['checks'].items() if 'name' in value] # noqa
1497-
if len(builders) is 0:
1497+
if len(builders) == 0:
14981498
raise RuntimeError('Invalid configuration')
14991499

15001500
state.init_build_res(builders, use_db=False)

homu/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def fail(err):
503503
for name, value in repo_cfg['status'].items():
504504
if 'context' in value and value['context'] == info['context']:
505505
status_name = name
506-
if status_name is "":
506+
if status_name == "":
507507
return 'OK'
508508

509509
if info['state'] == 'pending':

0 commit comments

Comments
 (0)