Skip to content

Commit

Permalink
Introduce build.boot and boot-alt-test in boot/pod
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Jan 16, 2018
1 parent cbf11eb commit 7d8a718
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ deploy: .deployed
.tested: bin/boot
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/core && ../../bin/boot -x test)
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/worker && ../../bin/boot -x test)
(cd boot/pod && lein test)
(export BOOT_VERSION=$(version) && export BOOT_EMIT_TARGET=no && cd boot/pod && ../../bin/boot -x test)
date > .tested

test: .installed .tested
22 changes: 22 additions & 0 deletions boot/pod/build.boot
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(import boot.App)

(def +version+ (App/config "BOOT_VERSION"))

(set-env!
:source-paths #{"src" "test"}
:dependencies [['org.clojure/clojure "1.7.0"] ;; has to run 1.7.0 or boot-alt-test will fail
['boot/aether +version+]
['org.tcrawley/dynapath "1.0.0"]
['org.projectodd.shimdandy/shimdandy-impl "1.2.0"]

['metosin/boot-alt-test "0.3.2" :scope "test"]])

(ns-unmap 'boot.user 'test)

(require '[metosin.boot-alt-test :refer [alt-test]])

(deftask test []
(comp
(with-pass-thru [fs]
(boot.util/info "Testing against version %s\n" (App/config "BOOT_VERSION")))
(alt-test)))

0 comments on commit 7d8a718

Please sign in to comment.