forked from kit-clj/kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
30 lines (30 loc) · 1.46 KB
/
bb.edn
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
26
27
28
29
30
{:paths ["build"]
:deps {io.aviso/pretty {:mvn/version "1.3"}}
:tasks {:requires ([clojure.string :as str]
[io.aviso.ansi :as ansi])
:init (do
(def lib (first *command-line-args*))
(defn clj [& args]
(println (str
ansi/bold-font "+ clojure " (str/join " " args)
ansi/reset-font))
(apply clojure args)))
publish-local (clj "-T:build install-lib" :artifact-id lib)
publish (clj "-T:build install-lib" :artifact-id lib :publish true)
publish-all-local (clj "-T:build all" :publish false)
antq (clj
"-Sdeps '{:deps {com.github.liquidz/antq {:mvn/version \"RELEASE\"}}}'"
"-M" "-m" "antq.core" "-d" "build")
sync-deps ((requiring-resolve 'kit.sync-lib-deps/-main))
ci {:doc "Run all CI tasks locally"
:requires ([taoensso.timbre :as log])
:task (do
(log/info "bb run publish-local deps-template")
(binding [*command-line-args* ["deps-template"]]
(run 'publish-local))
(log/info "bb run publish-local lein-template")
(binding [*command-line-args* ["lein-template"]]
(run 'publish-local))
(log/info "bb run test")
(run 'test))}
test (clj "-M:test")}}