Skip to content

Commit e469cfc

Browse files
committed
Introduce build.boot and boot-alt-test in boot/pod
1 parent cbf11eb commit e469cfc

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ deploy: .deployed
9797
.tested: bin/boot
9898
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/core && ../../bin/boot -x test)
9999
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/worker && ../../bin/boot -x test)
100-
(cd boot/pod && lein test)
100+
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/pod && ../../bin/boot -x test)
101101
date > .tested
102102

103103
test: .installed .tested

boot/pod/build.boot

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(import boot.App)
2+
3+
(def +version+ (App/config "BOOT_VERSION"))
4+
5+
(set-env!
6+
:source-paths #{"src" "test"}
7+
:dependencies [['org.clojure/clojure "1.7.0"] ;; has to run 1.7.0 or boot-alt-test will fail
8+
['boot/aether +version+]
9+
['org.tcrawley/dynapath "1.0.0"]
10+
['org.projectodd.shimdandy/shimdandy-impl "1.2.0"]
11+
12+
['metosin/boot-alt-test "0.4.0-SNAPSHOT" :scope "test"]])
13+
14+
(ns-unmap 'boot.user 'test)
15+
16+
(require '[metosin.boot-alt-test :refer [alt-test]])
17+
18+
(deftask test []
19+
(comp
20+
(with-pass-thru [fs]
21+
(boot.util/info "Testing against version %s\n" (App/config "BOOT_VERSION")))
22+
(alt-test)))

0 commit comments

Comments
 (0)