-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
19 lines (19 loc) · 1.21 KB
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;!zprint {:map {:hang? true :force-nl? true :key-order [:paths :deps :tasks] :key-value-options {:tasks {:map {:sort? true :justify? true}}}}}
{:paths ["scripts"]
:min-bb-version "0.4.0"
:tasks {check {:depends [lint-check fmt-check]
:doc "Check the code for problems."}
deps {:doc "Download the project dependencies."
:task (clojure "-P" "-M:test")}
fmt-check {:doc "Check code formatting."
:task (shell "scripts/format-clj.sh check")}
fmt-fix {:doc "Fix code formatting."
:task (shell "scripts/format-clj.sh fix")}
lint-check {:doc "Check code linting."
:task (shell "scripts/lint-clj.sh check")}
test {:doc "Run the test suite."
:task (doseq [xtdb-alias [:1.22 :1.23 :1.24]]
(println "\n⬇ Testing against XTDB" (name xtdb-alias) " ⬇")
(clojure (str "-M" ":test" (str xtdb-alias)) "--fail-fast" "unit"))}
test-watch {:doc "Test files while watching the file system for changes."
:task (clojure "-M:test" "--fail-fast" "--watch" "unit")}}}