Skip to content

Commit

Permalink
Make the notifier a no-op in CI environments
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed May 15, 2024
1 parent 7b23162 commit 165bd62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Unreleased

## Added

## Fixed

## Changed

- Always make the notifier plugin a no-op in CI environments, so when `(= "true" (getenv "CI"))`

# 1.89.1380 (2024-05-07 / d10b0de)

## Changed
Expand Down
2 changes: 1 addition & 1 deletion src/kaocha/plugin/notifier.clj
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
(::notifications? config true)))))

(post-run [result]
(when (::notifications? result)
(when (and (::notifications? result) (not (= (System/getenv "CI") "true")))
(if-let [command (::command result)]
(run-command command result)
(send-tray-notification result)))
Expand Down

0 comments on commit 165bd62

Please sign in to comment.