Skip to content

Commit a12cae9

Browse files
committed
Pass options through
1 parent 3c7f554 commit a12cae9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Passing options to test-runner possible, see examples." [opts]
4141
#_(prn :opts opts)
4242
(let [test-options (extract-keys-with-ns "test" opts)
43-
opts (-> test-options
43+
test-options (-> test-options
4444
(update-keys (fn [k]
4545
;; :H => "-H", :help => "--help"
4646
(let [k (name k)]
@@ -53,7 +53,7 @@
5353
:main 'clojure.main
5454
#_#_:cp ["/opt/homebrew/Cellar/clojure/1.11.1.1413/libexec/exec.jar"]
5555
#_#_:main-args ["-m" "clojure.run.exec" ":dirs" "src"]
56-
:main-args (doto (reduce into ["-m" "cognitect.test-runner"] opts) prn)}))
56+
:main-args (doto (reduce into ["-m" "cognitect.test-runner"] test-options) prn)}))
5757
{:keys [exit]} (b/process cmds)]
5858
(when-not (zero? exit) (throw (ex-info "Tests failed" {}))))
5959
opts)
@@ -108,7 +108,8 @@
108108
#_:end)
109109

110110
(defn
111-
^#:fika{:option.git-version {:name :build/git-version
111+
^#:fika{:examples [":build/git-version $(printf '\"%s\"' $(git describe --tags))"]
112+
:option.git-version {:name :build/git-version
112113
:desc "Output of `git describe --tags`, e.g. \"v1.2.3\", \"v1.2.3-pre.1\""}}
113114
build
114115
"Build the JAR."

0 commit comments

Comments
 (0)