-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.boot
41 lines (34 loc) · 1.24 KB
/
build.boot
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
40
41
(set-env!
:version "1.3.0"
:dependencies '[[org.clojure/clojure "1.8.0"]
[cheshire "5.6.1"]
[org.clojure/java.jdbc "0.6.0-alpha2"]
[org.postgresql/postgresql "9.4.1208"]
[tolitius/boot-check "0.1.3" :scope "test"]
[adzerk/boot-test "1.1.0" :scope "test"]
[environ "1.0.2" :scope "test"]]
:resource-paths #{"src"}
:source-paths #{"src"})
(require '[adzerk.boot-test :as t])
(task-options!
pom {:project 'mpg
:version (get-env :version)
:description "More modern Postgres to the gallon. Transparently maps clojure <-> postgresql data"
:url "https://github.com/mpg-project/mpg"
:scm {:url "https://github.com/irresponsible/oolong.git"}
:license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
target {:dir #{"target"}}})
(deftask testing []
(alter-var-root #'*warn-on-reflection* (constantly true))
(set-env! :source-paths #(conj % "test")
:resource-paths #(conj % "test"))
identity)
(deftask test []
(comp (testing) (speak) (t/test)))
(deftask autotest []
(comp (watch) (test)))
(deftask make-jar []
(comp (pom) (jar)))
(deftask travis []
(testing)
(t/test))