-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.boot
62 lines (54 loc) · 1.86 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
(set-env!
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[nightlight "1.7.0" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[org.nd4j/nd4j-native-platform "1.0.0-beta2" :scope "test"]
[org.nd4j/nd4j-api "1.0.0-beta2"]
[boot-codox "0.10.3" :scope "test"]]
:repositories (conj (get-env :repositories)
["clojars" {:url "https://clojars.org/repo"
:username (System/getenv "CLOJARS_USER")
:password (System/getenv "CLOJARS_PASS")}]))
(task-options!
jar {:main 'jutsu.matrix.core
:manifest {"Description" "jutsu.matrix is a linear algebra library meant for the jutsu data science framework"}}
pom {:version "0.0.16"
:project 'hswick/jutsu.matrix
:description "jutsu.matrix is a linear algebra library meant for the jutsu data science framework"
:url "https://github.com/hswick/jutsu.matrix"}
push {:repo "clojars"})
(deftask deploy []
(comp
(pom)
(jar)
(install)
(push)))
;;So nightlight can still open even if there is an error in the core file
(try
(require 'jutsu.matrix.core)
(catch Exception e (.getMessage e)))
(require
'[nightlight.boot :refer [nightlight]]
'[adzerk.boot-test :refer :all]
'[codox.boot :refer [codox]])
(deftask night []
(comp
(wait)
(nightlight :port 4000)))
(deftask testing [] (merge-env! :resource-paths #{"test"}) identity)
(deftask test-code
[]
(comp
(testing)
(test)))
(deftask gen-docs
[]
(set-env! :source-paths #(conj % "docs"))
(comp
(codox :name "jutsu.matrix"
:description "Clojure library for linear algebra operations, wraps ND4J."
:version "0.0.15"
:source-paths #{"src/jutsu/matrix/"}
:output-path "docs")
(target)))