From 86ab5a7d17d5ada8a95e6825129ab8cd1e8cdb06 Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Thu, 6 Jan 2022 10:48:07 -0500 Subject: [PATCH] Add build.clj --- build.clj | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 build.clj diff --git a/build.clj b/build.clj new file mode 100644 index 0000000..f9bf581 --- /dev/null +++ b/build.clj @@ -0,0 +1,31 @@ +(ns build + "Geo build script. + + clojure -T:build ci + + clojure -T:build install + + clojure -T:build deploy" + + (:require [clojure.tools.build.api :as b] + [org.corfield.build :as bb])) + +(def lib 'Factual/geo) +(def version "3.0.1") + +(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts] + (-> opts + (assoc :lib lib :version version) + ;(bb/run-tests) ;; Pending move to clojure.test and cljs + (bb/clean) + (bb/jar))) + +(defn install "Install the JAR locally." [opts] + (-> opts + (assoc :lib lib :version version) + (bb/install))) + +(defn deploy "Deploy the JAR to Clojars." [opts] + (-> opts + (assoc :lib lib :version version) + (bb/install)))