This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.boot
88 lines (74 loc) · 2.53 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
(set-env!
:project 'irresponsible/oolong
:version "0.4.1"
:resource-paths #{"src" "resources"}
:source-paths #{"src"}
:description "A config-based loader for stuartsierra's `component` library"
:url "https://github.com/irresponsible/oolong"
:scm {:url "https://github.com/irresponsible/oolong"}
:developers {"James Laver" "[email protected]"}
:license {"MIT" "https://en.wikipedia.org/MIT_License"}
:dependencies '[[org.clojure/clojure "1.9.0-alpha15" :scope "provided"]
[com.stuartsierra/component "0.3.2"]
[org.clojure/clojurescript "1.9.518" :scope "test"]
[adzerk/boot-cljs "1.7.228-2" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[crisptrutski/boot-cljs-test "0.3.0" :scope "test"]])
(require '[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-test :as t]
'[crisptrutski.boot-cljs-test :refer [test-cljs]])
(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 "clojars"
:repo-map [["clojars" {:url "https://clojars.org/repo/"}]]}
test-cljs {:js-env :phantom}
target {:dir #{"target"}})
(deftask testing []
(set-env! :source-paths #(conj % "test")
:resource-paths #(conj % "test"))
identity)
(deftask clj-tests []
(comp (testing) (t/test)))
(deftask cljs-tests []
(comp (testing) (test-cljs)))
(deftask test []
(comp (testing) (t/test) (test-cljs)))
(deftask autotest-clj []
(comp (testing) (watch) (speak) (t/test)))
(deftask autotest-cljs []
(comp (testing) (watch) (speak) (test-cljs)))
(deftask autotest []
(comp (watch) (test)))
;; RMG Only stuff
(deftask make-jar []
(comp (pom) (jar) (target)))
(deftask release []
(comp (pom) (jar) (push)))
;; Travis Only stuff
(deftask travis []
(testing)
(comp (t/test) (test-cljs)))
(deftask travis-installdeps []
(testing) identity)
(deftask jitpak-deploy []
(task-options! pom {
:project (symbol (System/getenv "ARTIFACT"))
})
(comp
(pom)
(jar)
(target) ; Must install to build dir
(install) ; And to .m2 https://jitpack.io/docs/BUILDING/#build-customization
)
)