From 4883f49b1972418562ab0ec8e8dd093dd83898e6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 21 Oct 2023 19:15:34 +0200 Subject: [PATCH] Removed unused `travisci` events. --- docs/source/platypush/events/travisci.rst | 5 -- platypush/message/event/travisci.py | 68 ----------------------- 2 files changed, 73 deletions(-) delete mode 100644 docs/source/platypush/events/travisci.rst delete mode 100644 platypush/message/event/travisci.py diff --git a/docs/source/platypush/events/travisci.rst b/docs/source/platypush/events/travisci.rst deleted file mode 100644 index 0b31ec487..000000000 --- a/docs/source/platypush/events/travisci.rst +++ /dev/null @@ -1,5 +0,0 @@ -``travisci`` -==================================== - -.. automodule:: platypush.message.event.travisci - :members: diff --git a/platypush/message/event/travisci.py b/platypush/message/event/travisci.py deleted file mode 100644 index 693a7cbd1..000000000 --- a/platypush/message/event/travisci.py +++ /dev/null @@ -1,68 +0,0 @@ -from typing import Optional - -from platypush.message.event import Event - - -class TravisciBuildEvent(Event): - def __init__(self, - repository_id: int, - repository_name: str, - repository_slug: str, - passed: bool, - build_id: int, - build_number: int, - duration: int, - previous_state: str, - private: bool, - tag: Optional[str], - branch: str, - commit_id: Optional[str], - commit_sha: Optional[str], - commit_message: Optional[str], - committed_at: str, - created_by: str, - started_at: str, - finished_at: str, - *args, - **kwargs): - super().__init__(*args, - repository_id=repository_id, - repository_name=repository_name, - repository_slug=repository_slug, - passed=passed, - build_id=build_id, - build_number=build_number, - duration=duration, - previous_state=previous_state, - private=private, - tag=tag, - branch=branch, - commit_id=commit_id, - commit_sha=commit_sha, - commit_message=commit_message, - committed_at=committed_at, - created_by=created_by, - started_at=started_at, - finished_at=finished_at, - **kwargs) - - -class TravisciBuildPassedEvent(TravisciBuildEvent): - """ - Event triggered when a Travis-Ci build passes. - """ - def __init__(self, *args, **kwargs): - kwargs['passed'] = True - super().__init__(*args, **kwargs) - - -class TravisciBuildFailedEvent(TravisciBuildEvent): - """ - Event triggered when a Travis-Ci build fails. - """ - def __init__(self, *args, **kwargs): - kwargs['passed'] = False - super().__init__(*args, **kwargs) - - -# vim:sw=4:ts=4:et: