-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
67 lines (58 loc) · 2.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
(set-env!
:project 'irresponsible/gadget
:version "0.2.0"
:resource-paths #{"src"}
:source-paths #{"src"}
:description "Introspection helpers, useful for repo work"
:url "https://github.com/irresponsible/gadget"
:scm {:url "https://github.com/irresponsible/gadget.git"}
:license {"MIT" "https://en.wikipedia.org/MIT_License"}
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"]
[irresponsible/overload "0.2.0"]
[irresponsible/unscrew "0.1.2"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
[adzerk/boot-test "1.1.0" :scope "test"]
;; [org.clojure/clojurescript "1.7.228" :scope "test"]
;; [adzerk/boot-cljs "1.7.228-1" :scope "test"]
;; [crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :scope "test"]
])
(require '[adzerk.boot-test :as boot-test])
;; '[adzerk.boot-cljs :as boot-cljs]
;; '[adzerk.boot-cljs-repl :as boot-cljs-repl]
;; '[adzerk.boot-reload :as boot-reload]
;; '[crisptrutski.boot-cljs-test :as boot-cljs-test]
;; '[pandeiro.boot-http :as boot-http])
(task-options!
pom {:url (get-env :url)
:scm (get-env :scm)
:project (get-env :project)
:version (get-env :version)
:license (get-env :license)
:description (get-env :description)
:developers (get-env :developers)}
push {:tag true
:ensure-branch "master"
:ensure-release true
:ensure-clean true
:gpg-sign true
:repo-map [["clojars" {:url "https://clojars.org/repo/"}]]}
target {:dir #{"target"}})
(deftask testing []
(set-env! :resource-paths #(conj % "test"))
(set-env! :source-paths #(conj % "test")))
(deftask test-clj []
(testing)
(comp (target) (speak) (boot-test/test)))
;; (deftask test-cljs []
;; (set-env! :source-paths #(conj % "test"))
;; (comp (target) (speak) (boot-cljs/cljs) (boot-cljs-test/test-cljs)))
(deftask test []
(testing)
(comp (target) (speak) (javac) (boot-test/test)))
(deftask autotest []
(comp (watch) (test)))
(deftask make-jar []
(comp (target) (pom) (jar)))
(deftask travis []
(testing)
(boot-test/test))