forked from hashobject/perun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
68 lines (58 loc) · 1.56 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
(set-env!
:source-paths #{"test"}
:resource-paths #{"src"}
:dependencies '[[boot/core "2.8.2" :scope "provided"]
[org.clojure/clojure "1.10.1"]
[adzerk/boot-test "1.2.0" :scope "test"]
[adzerk/bootlaces "0.2.0" :scope "test"]])
(require 'io.perun)
(def pod-deps
(->> (ns-interns 'io.perun)
vals
(filter #(:deps (meta %)))
(map deref)
(reduce concat)
(map #(conj % :scope "test"))))
(set-env! :dependencies #(into % pod-deps))
(require '[adzerk.bootlaces :refer :all])
(require '[io.perun.core :refer [+version+]])
(require '[io.perun-test])
(require '[boot.test :refer [runtests test-report test-exit]])
(bootlaces! +version+)
(task-options!
aot {:all true}
push {:ensure-branch "master"
:ensure-clean false
:ensure-version +version+}
pom {:project 'perun
:version +version+
:description "Static site generator build with Clojure and Boot"
:url "https://github.com/hashobject/perun"
:scm {:url "https://github.com/hashobject/perun"}
:license {"name" "Eclipse Public License"
"url" "http://www.eclipse.org/legal/epl-v10.html"}})
(deftask release-snapshot
"Release snapshot"
[]
(comp (build-jar) (push-snapshot)))
(deftask build
"Build process"
[]
(comp
(pom)
(jar)
(install)))
(deftask dev
"Dev process"
[]
(comp
(watch)
(repl :server true)
(build)))
(deftask test
"Run tests"
[]
(comp
(runtests)
(test-report)
(test-exit)))