Skip to content

Commit c976484

Browse files
committed
libs canary tests: add ancient-clj
1 parent 321ec7a commit c976484

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ See https://github.com/clj-commons/rewrite-clj/projects/1[project page for curre
5050

5151
Some projects using rewrite-clj v1
5252

53+
* https://github.com/xsc/ancient-clj[ancient-clj] {canary-tested}
5354
* https://github.com/liquidz/antq[antq] {canary-tested}
5455
* https://github.com/babashka/babashka[babashka] {not-canary-tested}
5556
* https://github.com/borkdude/carve[carve] {canary-tested} (in dev)

script/test_libs.clj

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,16 @@
157157
(shcmd {:dir home-dir :continue true}
158158
"git --no-pager diff"))
159159

160+
;;
161+
;; ancient-clj
162+
;;
163+
(defn ancient-clj-patch [{:keys [home-dir rewrite-clj-version]}]
164+
(patch-deps {:filename (str (fs/file home-dir "project.clj"))
165+
;; we remove and add tools.reader because project.clj has pedantic? :abort enabled
166+
:removals #{'rewrite-clj 'org.clojure/tools.reader}
167+
:additions [['org.clojure/tools.reader "1.3.6"]
168+
['rewrite-clj rewrite-clj-version]]}))
169+
160170
;;
161171
;; carve
162172
;;
@@ -302,7 +312,15 @@
302312
;; lib defs
303313
;;
304314

305-
(def libs [{:name "antq"
315+
(def libs [{:name "ancient-clj"
316+
:version "2.0.0"
317+
:platforms [:clj]
318+
:github-release {:repo "xsc/ancient-clj"
319+
:version-prefix "v"}
320+
:patch-fn ancient-clj-patch
321+
:show-deps-fn lein-deps-tree
322+
:test-cmds ["lein kaocha"]}
323+
{:name "antq"
306324
:version "1.0.0"
307325
:platforms [:clj]
308326
:github-release {:repo "liquidz/antq"}

0 commit comments

Comments
 (0)