-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
29 lines (23 loc) · 1.33 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 {this/repo {:local/root "."}}
:tasks
{:requires ([babashka.fs :as fs]
[clojure.string :as str])
:init (do (def sosh (fs/path (fs/cwd) "main/src/pl/rynkowski/sosh.cljc")))
deps (print-exec '(clojure "-M:tool/antq -m antq.core") *command-line-args*)
deps:upgrade (shell "bb deps --upgrade")
format:sosh (shell (str sosh " fetch @bin/format.bash"))
format {:depends [format:sosh]
:task (shell "@bin/format.bash" (str/join " " *command-line-args*))}
lint:sosh (do (shell (str sosh " fetch ./test/res/test_suite/4_import_remote/entry.bash"))
(shell (str sosh " fetch ./test/res/test_suite/5_remote_sourcing_same_repo/repo/entry.bash"))
(shell (str sosh " fetch @bin/lint.bash")))
lint {:depends [lint:sosh format:sosh]
:task (shell "@bin/lint.bash")}
test {:depends [test:bash test:bb test:clj]}
test:bash (shell "bats ./test/src/test.bats")
test:bash-verbose (shell "bats --show-output-of-passing-tests ./test/src/test.bats")
test:bb {:task (let [test-deps {:deps (-> (slurp "deps.edn") read-string :aliases :test :extra-deps)}]
(println test-deps)
(shell (format "bb -Sdeps '%s' -m kaocha.runner/-main --config-file tests.edn" test-deps)))}
test:clj (clojure "-M:test -m kaocha.runner --config-file tests.edn")
#_:tasks}}