Skip to content

Commit 52d47c3

Browse files
committed
v3-snapshot
split built-in tasks, disable testing, remove help task from core, bump clojure
1 parent 88f9e34 commit 52d47c3

File tree

10 files changed

+55
-35
lines changed

10 files changed

+55
-35
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bin/lein: mkdirs
3939
chmod 755 bin/lein
4040

4141
bin/boot: mkdirs
42-
curl -fsSLo bin/boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh
42+
wget -O bin/boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh
4343
chmod 755 bin/boot
4444

4545
deps: bin/lein bin/boot

boot.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BOOT_VERSION=3.0.0-SNAPSHOT

boot/core/boot.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BOOT_CLOJURE_VERSION=1.9.0

boot/core/build.boot

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
(set-env!
2-
:source-paths #{"src" "test"}
3-
:dependencies '[[org.clojure/tools.reader "1.0.0-alpha2"]
4-
[metosin/boot-alt-test "0.3.2" :scope "test"]])
2+
:source-paths #{"src"} ;"test"}
3+
:dependencies '[[org.clojure/clojure "1.9.0"]])
4+
;[org.clojure/tools.reader "1.0.0-alpha2"]])
5+
;[metosin/boot-alt-test "0.3.2" :scope "test"]])
56

6-
(ns-unmap 'boot.user 'test)
7+
;(ns-unmap 'boot.user 'test)
78

8-
(require '[boot.test :refer [runtests test-report test-exit]]
9-
'[metosin.boot-alt-test :refer [alt-test]]
10-
'boot.test-test)
9+
;(require '[boot.test :refer [runtests test-report test-exit]]
10+
; '[metosin.boot-alt-test :refer [alt-test]])
11+
;'boot.test-test)
1112

12-
(import boot.App)
13+
;(import boot.App)
1314

14-
(deftask integration-test []
15-
(comp
16-
(runtests)
17-
(test-report)
18-
(test-exit)))
15+
;(deftask integration-test []
16+
; (comp
17+
; (runtests)
18+
; (test-report)
19+
; (test-exit))
1920

20-
(deftask unit-test []
21-
(alt-test :test-matcher #"boot\.cli-test"))
21+
;(deftask unit-test []
22+
; (alt-test :test-matcher #"boot\.cli-test"))
2223

23-
(deftask test []
24-
(comp
25-
(with-pass-thru [fs]
26-
(boot.util/info "Testing against version %s\n" (App/config "BOOT_VERSION")))
27-
(unit-test)
28-
(integration-test)))
24+
;(deftask test []
25+
;(comp
26+
; (with-pass-thru [fs]
27+
; (boot.util/info "Testing against version %s\n" (App/config "BOOT_VERSION"))
28+
; (unit-test)
29+
; (integration-test))

boot/core/src/boot/main.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
(with-out-str (pp/write form :dispatch pp/code-dispatch)))))
9090

9191
(defn emit [boot? argv userscript localscript bootscript import-ns inits]
92-
(let [boot-use '[boot.core boot.util boot.task.built-in]]
92+
(let [boot-use '[boot.core boot.util]] ;boot.task.built-in]]
9393
(str
9494
(string/join
9595
"\n\n"
@@ -103,8 +103,8 @@
103103
(pr-boot-form
104104
`(let [boot?# ~boot?]
105105
(if-not boot?#
106-
(when-let [main# (resolve 'boot.user/-main)] (main# ~@argv))
107-
(core/boot ~@(or (seq argv) ["boot.task.built-in/help"])))))]))
106+
(when-let [main# (resolve 'boot.user/-main)] (main# ~@argv)))))]))
107+
;(core/boot ~@(or (seq argv) ["boot.task.built-in/help"])))))]))
108108
"\n")))
109109

110110
(defn shebang? [arg]

boot/core/src/boot/task_helpers.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
(defn- tasks-table [tasks]
1919
(let [get-task #(-> % :name str)
2020
get-desc #(-> % :doc first-line)
21-
built-in {nil (get tasks 'boot.task.built-in)}]
22-
(->> (dissoc tasks 'boot.task.built-in)
21+
built-in {nil nil}] ;(get tasks 'boot.task.built-in)}]
22+
(->> tasks ;(dissoc tasks 'boot.task.built-in)
2323
(concat built-in) (interpose nil)
2424
(mapcat (fn [[_ xs]] (or xs [{:name "" :doc ""}])))
2525
(mapv (fn [x] ["" (get-task x) (get-desc x)])))))

boot/pod/test/boot/util_test.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@
132132
;; checks that optional version with option works
133133
{:project project
134134
:version nil
135-
:scope scope}))
135+
:scope scope}))))
136136

137-
(testing "check unusual arguments"
138-
(is (thrown? Exception (dep-as-map {})))
139-
(is (= [] (map-as-dep nil)))
140-
(is (= [] (map-as-dep [])))
141-
(is (thrown? Exception (map-as-dep 3))))))
137+
;(testing "check unusual arguments"
138+
;(is (thrown? Exception (dep-as-map {})))
139+
;(is (= [] (map-as-dep nil)))
140+
;(is (= [] (map-as-dep []))))))
141+
;(is (thrown? Exception (map-as-dep 3))))))

boot/tasks/build.boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(set-env!
2-
:source-paths #{"test"}
2+
;:source-paths #{"test"}
33
:resource-paths #{"src"}
44
:dependencies '[[org.clojure/clojure "1.9.0"]])

boot/worker/build.boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(set-env!
2-
:source-paths #{"src" "test"}
2+
:source-paths #{"src"} ;"test"}
33
:dependencies '[[net.cgrand/parsley "0.9.3" :exclusions [org.clojure/clojure]]
44
[mvxcvi/puget "1.0.1"]
55
[reply "0.4.1"]

docker/openjdk.dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM openjdk:8-alpine AS openjdk
2+
3+
RUN apk add wget git make bash
4+
5+
FROM openjdk AS boot
6+
7+
RUN wget -O /usr/local/bin/boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh
8+
9+
RUN chmod 755 /usr/local/bin/boot
10+
11+
COPY . /usr/boot-clj/
12+
13+
WORKDIR /usr/boot-clj
14+
15+
RUN make deps
16+
17+
RUN make install

0 commit comments

Comments
 (0)