-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.boot
95 lines (80 loc) · 2.7 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
89
90
91
92
93
94
95
(def +version+ "0.1.13")
(set-env!
:source-paths #{"src"}
:dependencies '[[boot/core "2.7.2"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[hiccup "1.0.5"]
[pandeiro/boot-http "0.8.3"]])
(require '[tolitius.boot-check :as check]
'[adzerk.bootlaces :refer :all]
'[boot.util]
'[tolitius.reporter.html :refer :all]
'[pandeiro.boot-http :refer :all])
(deftask test-kibit []
(set-env! :source-paths #{"src" "test"})
(comp
(check/with-kibit :options {:gen-report true})))
(deftask test-yagni []
(set-env! :source-paths #{"src" "test"})
(comp
(check/with-yagni :options {:gen-report true
:entry-points ["test.with-yagni/-main"
"test.with-yagni/func-the-second"
42]})))
(deftask test-eastwood []
(set-env! :source-paths #{"src" "test"} :boot-check-reporter :html)
(comp
(check/with-eastwood :options {:gen-report true :exclude-linters [:unused-ret-vals]})))
(deftask test-eastwood-no-report []
(set-env! :source-paths #{"src" "test"})
(comp
(check/with-eastwood :options {:exclude-linters [:unused-ret-vals]})))
(deftask test-eastwood-and-throw []
(set-env! :source-paths #{"src" "test"})
(comp
(check/with-eastwood :options {:gen-report true :exclude-linters [:unused-ret-vals]})
(check/throw-on-errors)))
(deftask test-bikeshed []
(set-env! :source-paths #{"src" "test"})
(comp
(check/with-bikeshed :options {:check? #{:long-lines :trailing-whitespace :var-redefs :bad-methods :name-collisions}
:max-line-length 42
:gen-report true})))
(deftask check-all []
(comp
(test-kibit)
(test-yagni)
(test-eastwood)
(test-bikeshed)))
(deftask check-all-and-throw []
(comp
(test-kibit)
(test-yagni)
(test-eastwood)
(test-bikeshed)
(check/throw-on-errors)))
(deftask check-all-serve []
(comp
(serve)
(test-kibit)
(test-yagni)
(test-eastwood)
(test-bikeshed)
(wait)))
(deftask check-all-serve-watch []
(comp
(serve)
(watch)
(test-kibit)
(test-yagni)
(test-eastwood)
(test-bikeshed)))
(bootlaces! +version+)
(task-options!
pom {:project 'tolitius/boot-check
:version +version+
:description "check / analyze Clojure/Script code"
:url "https://github.com/tolitius/boot-check"
:scm {:url "https://github.com/tolitius/boot-check"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}})