-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.boot
48 lines (40 loc) · 977 Bytes
/
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
(defn read-file [file] (read-string (slurp file)))
(defn get-deps [] (read-file "./dependencies.edn"))
(set-env!
:dependencies (get-deps)
:resource-paths #{"src"})
(require
'[degree9.boot-semver :refer :all]
'[tolitius.boot-check :as check])
(task-options!
pom {:project 'hoplon/brew
:description "Experimental Hoplon Components."
:url "http://github.com/hoplon/brew"
:scm {:url "http://github.com/hoplon/brew"}})
(deftask ci-deps
"Force CI to fetch dependencies."
[]
identity)
(deftask tests
"Run code tests."
[]
(comp
(check/with-kibit)
;(check/with-yagni)
(check/with-eastwood)
(check/with-bikeshed)))
(deftask deploy
"Build project for deployment to clojars."
[]
(comp
(version)
(build-jar)
(push-release)))
(deftask develop
"Build project for local development."
[]
(comp
(version :develop true
:pre-release 'snapshot)
(watch)
(build-jar)))