-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathbb.edn
More file actions
23 lines (23 loc) · 987 Bytes
/
bb.edn
File metadata and controls
23 lines (23 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{:deps {dev.weavejester/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 cljfmt/test lein-cljfmt/src")}
smoke {:doc "Run smoke tests"
:task smoke-test/-main}
bbfmt {:doc "Run cljfmt via Babashka"
:requires ([cljfmt.tool :as cljfmt])
:task (cljfmt/check {})}
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]
[cljfmt.config-test])
:task (let [{:keys [fail error]} (t/run-tests 'cljfmt.config-test
'cljfmt.core-test)]
(when (or (pos? fail)
(pos? error))
(throw (ex-info "Tests failed" {:babashka/exit 1}))))}}}