forked from weavejester/meta-merge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
29 lines (25 loc) · 1.48 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
{:deps {metosin/ctrl-merge {:local/root "."}}
:tasks {test-clj {:doc "Run JVM Clojure tests with kaocha"
:task (apply clojure
(str "-A:" (System/getenv "CLOJURE"))
"-M:test" "-m" "kaocha.runner" *command-line-args*)}
test-cljs {:doc "Run ClojureScript tests"
:task (do
(println "Running CLJS tests without optimizations")
(apply clojure
"-M:test:cljs-test-runner" "-c" "{:optimizations :none}"
*command-line-args*)
(println "Running CLJS tests with optimizations")
(apply clojure
"-M:test:cljs-test-runner" "-c" "{:optimizations :advanced}"
"-e" ":simple"
*command-line-args*))}
test-bb {:doc "Run Babashka tests"
:extra-deps {org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha"
:git/sha "951b49b8c173244e66443b8188e3ff928a0a71e7"}}
:extra-paths ["src" "test"]
:task bb-test-runner/run-tests}
test {:doc "Run all tests"
:depends [test-clj test-cljs test-bb]}
repl {:doc "Repl"
:task (apply clojure "-M:rebel:test -m rebel-readline.main" *command-line-args*)}}}