-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbb.edn
More file actions
25 lines (25 loc) · 1.03 KB
/
bb.edn
File metadata and controls
25 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{:min-bb-version "0.4.0"
:tasks
{test {:doc "run test suite"
:task (do
(println "initializing brokers ..")
(shell "docker compose up -d")
(println "running tests ..")
(try
(shell "clj -X:test")
(catch Exception e
(println "Tests failed with exception:" (.getMessage e))
(throw e))
(finally
(println "stopping brokers")
(shell "docker compose down"))))}
int {:doc "run integration tests"
:task (shell "clj -X:test :dirs '[\"test/goose/integration\"]'")}
fmt-fix {:doc "fix formatting issues"
:task (shell "clj -M:cljfmt fix")}
fmt-check {:doc "check formatting issues"
:task (shell "clj -M:cljfmt check")}
lint {:doc "lint src and test directories"
:task (do
(println "linting with clj-kondo")
(shell "clj-kondo --lint bb.edn deps.edn src test --fail-level error"))}}}