Skip to content

Commit 165bd62

Browse files
committed
Make the notifier a no-op in CI environments
1 parent 7b23162 commit 165bd62

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Unreleased
22

3-
## Added
4-
5-
## Fixed
6-
73
## Changed
84

5+
- Always make the notifier plugin a no-op in CI environments, so when `(= "true" (getenv "CI"))`
6+
97
# 1.89.1380 (2024-05-07 / d10b0de)
108

119
## Changed

src/kaocha/plugin/notifier.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
(::notifications? config true)))))
173173

174174
(post-run [result]
175-
(when (::notifications? result)
175+
(when (and (::notifications? result) (not (= (System/getenv "CI") "true")))
176176
(if-let [command (::command result)]
177177
(run-command command result)
178178
(send-tray-notification result)))

0 commit comments

Comments
 (0)