forked from weavejester/cljfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbb.edn
More file actions
18 lines (18 loc) · 732 Bytes
/
bb.edn
File metadata and controls
18 lines (18 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{:deps {cljfmt/cljfmt {:local/root "."}}
:paths ["scripts"]
:tasks
{fmt {:doc "Run cljfmt"
:task (shell "cljfmt check")}
lint {:doc "Run clj-kondo"
:task (shell "clj-kondo --lint cljfmt/src lein-cljfmt/src")}
smoke {:doc "Run smoke tests"
:task smoke-test/-main}
test {:doc "Run babashka tests"
:extra-deps {eftest/eftest {:mvn/version "0.6.0"}}
:extra-paths ["cljfmt/test"]
:requires ([clojure.test :as t]
[cljfmt.core-test])
:task (let [{:keys [fail error]} (t/run-tests 'cljfmt.core-test)]
(when (or (pos? fail)
(pos? error))
(throw (ex-info "Tests failed" {:babashka/exit 1}))))}}}