-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.clj
39 lines (32 loc) · 926 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
39
(ns build
"dbxray's build script. inspired by:
* https://github.com/seancorfield/honeysql/blob/develop/build.clj
* https://github.com/seancorfield/build-clj
Run tests:
clojure -X:test
clojure -X:test-cljs
For more information, run:
clojure -A:deps -T:build help/doc"
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb]))
(def lib 'party.donut/dbxray)
(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)))