-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
35 lines (30 loc) · 1.26 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
(def project 'firmata-test)
(def version "0.1.0-SNAPSHOT")
(set-env! :resource-paths #{"resources" "src"}
:source-paths #{"test"}
:dependencies '[[org.clojure/clojure "RELEASE"]
[clodiuno "0.0.4-SNAPSHOT"]
[serial-port "1.1.0"]
[adzerk/boot-test "RELEASE" :scope "test"]])
(task-options!
aot {:namespace #{'firmata-test.core}}
pom {:project project
:version version
:description "FIXME: write description"
:url "http://example/FIXME"
:scm {:url "https://github.com/yourname/firmata-test"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}}
jar {:main 'firmata-test.core
:file (str "firmata-test-" version "-standalone.jar")})
(deftask build
"Build the project locally as a JAR."
[d dir PATH #{str} "the set of directories to write to (target)."]
(let [dir (if (seq dir) dir #{"target"})]
(comp (aot) (pom) (uber) (jar) (target :dir dir))))
(deftask run
"Run the project."
[a args ARG [str] "the arguments for the application."]
(require '[firmata-test.core :as app])
(apply (resolve 'app/-main) args))
(require '[adzerk.boot-test :refer [test]])