-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |