From 10e0623e17c8fec6291559f9812b5e0e739b7845 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:34:44 +0200 Subject: [PATCH 1/8] ci: add Drone CI This is my first experiment to make sure I can actually use this in my CI. --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0bb5b60 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +--- +kind: pipeline +type: exec +name: Matrix Notifier check + +steps: +- name: Pre-commit checks + commands: + - nix develop -c pre-commit run --all + +- name: Notifiy + commands: + - nix run . + environment: + ADDRESS: + from_secret: matrix_homeserver + ROOM: + from_secret: matrix_roomid + USER: + from_secret: matrix_username + PASS: + from_secret: matrix_password + MESSAGE: + # FIXME: need to find a way to link + "Build ${DRONE_BUILD_STATUS} [${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}](${dummy_link}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}" + settings: + trigger: + status: + - failure + - success +... From fa23e48ad52883f9a0255cfabf19d62243428a46 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:39:09 +0200 Subject: [PATCH 2/8] fixup! ci: add Drone CI --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0bb5b60..7ae05c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: Matrix Notifier check steps: - name: Pre-commit checks commands: - - nix develop -c pre-commit run --all + - nix develop -vvv -c pre-commit run --all - name: Notifiy commands: From 23cda88f49449d9bffb6137d03e873ec468efac4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:42:41 +0200 Subject: [PATCH 3/8] fixup! fixup! ci: add Drone CI --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7ae05c1..c7db916 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: Matrix Notifier check steps: - name: Pre-commit checks commands: - - nix develop -vvv -c pre-commit run --all + - nix develop -vv -c pre-commit run --all - name: Notifiy commands: From 0694dcb7b7c7349abff0e8ae7f64bc8d233a0af9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:45:35 +0200 Subject: [PATCH 4/8] WIP: more verbose --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c7db916..dbf0c76 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: Matrix Notifier check steps: - name: Pre-commit checks commands: - - nix develop -vv -c pre-commit run --all + - nix develop -vvvvv -c pre-commit run --all - name: Notifiy commands: From b287605b90d4812b81c7a650d46448b2bcba6b5c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:56:16 +0200 Subject: [PATCH 5/8] WIP: remove pre-commit check --- .drone.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index dbf0c76..a45fef8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,10 +4,6 @@ type: exec name: Matrix Notifier check steps: -- name: Pre-commit checks - commands: - - nix develop -vvvvv -c pre-commit run --all - - name: Notifiy commands: - nix run . From 002f514dd572685935cd0450dbb657a2bc1008b6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 14:59:05 +0200 Subject: [PATCH 6/8] WIP: more verbose --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a45fef8..7687061 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: Matrix Notifier check steps: - name: Notifiy commands: - - nix run . + - nix run -vvv . environment: ADDRESS: from_secret: matrix_homeserver From c91766f15e2df183e8b28cf1d4637ed5cf2ca208 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 16:53:14 +0200 Subject: [PATCH 7/8] Use nix flake check --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7687061..13d9ff8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,9 +4,13 @@ type: exec name: Matrix Notifier check steps: +- name: Pre-commit checks + commands: + - nix flake check + - name: Notifiy commands: - - nix run -vvv . + - nix run . environment: ADDRESS: from_secret: matrix_homeserver From 0583ed23109ec831e5f868c6f78d3224fb347d55 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 16:55:26 +0200 Subject: [PATCH 8/8] WIP more verbose --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 13d9ff8..bf321a3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: Matrix Notifier check steps: - name: Pre-commit checks commands: - - nix flake check + - nix flake check -vvv - name: Notifiy commands: