-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbb.edn
49 lines (40 loc) · 2.34 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{:paths ["resources" "bb"]
:deps {io.github.borkdude/gh-release-artifact {:git/sha "4a9a74f0e50e897c45df8cc70684360eb30fce80"}}
:min-bb-version "1.0.165"
:tasks
{:requires [[babashka.deps :as deps]
[babashka.fs :as fs]
[babashka.process :as p]
[clojure.string :as str]]
compile tasks/compile-native
bump-version (load-file "script/bump_version.clj")
changelog (load-file "script/changelog.clj")
gen-script {:doc "Regen `./deps[.clj|.bat]` from `src/borkdude/deps.clj`."
:task (load-file "script/gen_script.clj")}
babashka-test {:doc "Run tests with bb calling to bb deps lib."
:task (let [bb (str \" (.get (.command (.info (java.lang.ProcessHandle/current)))) \")]
(p/shell {:extra-env {"DEPS_CLJ_TEST_ENV" "babashka"}}
bb "-cp" (str/join fs/path-separator ["src" "test" "resources"])
"-e" "(require '[clojure.test :as t] '[borkdude.deps-test])"
"-e" "(let [{:keys [:fail :error]} (t/run-tests 'borkdude.deps-test)] (System/exit (+ fail error)))"))}
exe-test {:doc "Run tests with deps exec calling to deps exec."
:task (p/shell {:extra-env {"DEPS_CLJ_TEST_ENV" "native"}}
(if (fs/windows?) "./deps.exe" "./deps") "-M:test")}
jvm-clj-test {:doc "Run tests with clojure calling to clojure deps lib."
:task (-> (deps/clojure '[-M:test])
p/check)}
jvm-deps-test {:doc "Run tests with clojure deps lib calling to clojure deps lib."
:task (-> (deps/clojure '[-M -m borkdude.deps -M:test])
p/check)}
jvm-test {:doc "Run both jvm-clj-test and jvm-deps-test."
:task (doseq [task '[jvm-clj-test jvm-deps-test]]
(println :running... task)
(run task)
(println))}
upload-artifact {:task (exec 'artifact/upload)}
quickdoc {:doc "Invoke quickdoc"
:extra-deps {io.github.borkdude/quickdoc {:git/sha "32e726cd6d785d00e49d4e614a05f7436d3831c0"}}
:task (exec 'quickdoc.api/quickdoc)
:exec-args {:git/branch "master"
:github/repo "https://github.com/borkdude/deps.clj"
:source-paths ["src"]}}}}