Skip to content

Commit

Permalink
simplified build script
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Oct 16, 2024
1 parent 9ded436 commit 45c82da
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
(def class-dir "target/classes")

(defn test "Run all the tests." [opts]
(doseq [alias [:1.11 :1.12 :master]]
(println "\nRunning tests for Clojure" (name alias))
(let [basis (b/create-basis {:aliases [:test alias]})
cmds (b/java-command
{:basis basis
:main 'clojure.main
:main-args ["-m" "cognitect.test-runner"]})
{:keys [exit]} (b/process cmds)]
(when-not (zero? exit) (throw (ex-info "Tests failed" {})))))
(println "\nRunning tests for Clojure")
(let [basis (b/create-basis {:aliases [:test]})
cmds (b/java-command
{:basis basis
:main 'clojure.main
:main-args ["-m" "cognitect.test-runner"]})
{:keys [exit]} (b/process cmds)]
(when-not (zero? exit) (throw (ex-info "Tests failed" {}))))
opts)

(defn- pom-template [version]
Expand Down

0 comments on commit 45c82da

Please sign in to comment.