-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.boot
51 lines (44 loc) · 1.64 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
(set-env!
:resource-paths #{"src" "data"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[nightlight "1.7.2" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[org.nd4j/nd4j-native-platform "1.0.0-beta" :scope "provided"]
[org.deeplearning4j/deeplearning4j-core "1.0.0-beta"]
[org.nd4j/nd4j-api "1.0.0-beta"]
[org.datavec/datavec-api "1.0.0-beta"]
[hswick/jutsu.matrix "0.0.15" :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.ai.core
:manifest {"Description" "Clojure wrapper for deeplearning4j intended to make machine learning on the JVM simpler"}}
pom {:version "0.1.5"
:project 'hswick/jutsu.ai
:description "Clojure wrapper for deeplearning4j intended to make machine learning on the JVM simpler"
:url "https://github.com/hswick/jutsu.ai"}
push {:repo "clojars"})
(deftask deploy []
(comp
(pom)
(jar)
(push)))
(require
'[nightlight.boot :refer [nightlight]]
'[adzerk.boot-test :refer :all])
;;So nightlight can still open even if there is an error in the core file
(try
(require 'jutsu.ai.core)
(catch Exception e (.getMessage e)))
(deftask night []
(comp
(wait)
(nightlight :port 4000)))
(deftask testing [] (merge-env! :source-paths #{"test"}) identity)
(deftask test-code
[]
(comp
(testing)
(test)))