-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.boot
54 lines (46 loc) · 1.3 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
(set-env!
:source-paths #{"test"}
:resource-paths #{"src"}
:dependencies '[[boot/core "2.8.2" :scope "provided" :exclusions [org.clojure/clojure]]
[degree9/boot-semver "1.11.0" :scope "test" :exclusions [org.clojure/clojure]]])
(require 'io.perun)
(def pod-deps
(->> (ns-interns 'io.perun)
vals
(filter #(:deps (meta %)))
(map deref)
(reduce concat)
(map #(into % [:scope "test" :exclusions '[org.clojure/clojure]]))))
(set-env! :dependencies #(into % pod-deps))
(require '[io.perun-test])
(require '[boot.test :refer [runtests test-report test-exit]])
(require '[degree9.boot-semver :refer :all])
(task-options!
aot {:all true}
pom {:project 'perun
: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 build
"Build process"
[]
(comp
(version :include true)
(build-jar)))
(deftask dev
"Dev process"
[]
(comp
(watch)
(repl :server true)
(build)))
(ns-unmap *ns* 'test)
(deftask test
"Run tests"
[]
(comp
(runtests)
(test-report)
(test-exit)))