-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.clj
38 lines (30 loc) · 890 Bytes
/
build.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(ns build
"donut/graphputer's build script. Builds on https://github.com/seancorfield/honeysql/blob/develop/build.clj
Run tests:
clojure -X:test
clojure -X:test:master
For more information, run:
clojure -A:deps -T:build help/doc"
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb])
(:refer-clojure :exclude [test]))
(def lib 'party.donut/graphputer)
(def version (format "0.0.%s" (b/git-count-revs nil)))
(defn deploy "Deploy the JAR to Clojars"
[opts]
(-> opts
(assoc :lib lib :version version)
(bb/deploy)))
(defn jar "build a jar"
[opts]
(-> opts
(assoc :lib lib :version version)
(bb/clean)
(bb/jar)))
(defn install "Install the JAR locally." [opts]
(-> opts
(assoc :lib lib :version version)
(bb/install)))
(defn test "Run basic tests." [opts]
(-> opts
(bb/run-tests)))