Skip to content

Commit

Permalink
Add build.clj
Browse files Browse the repository at this point in the history
  • Loading branch information
willcohen committed Apr 9, 2024
1 parent bda5f5a commit 86ab5a7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions build.clj
Original file line number Diff line number Diff line change
@@ -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)))

0 comments on commit 86ab5a7

Please sign in to comment.