File tree Expand file tree Collapse file tree 10 files changed +55
-35
lines changed Expand file tree Collapse file tree 10 files changed +55
-35
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ bin/lein: mkdirs
39
39
chmod 755 bin/lein
40
40
41
41
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
43
43
chmod 755 bin/boot
44
44
45
45
deps : bin/lein bin/boot
Original file line number Diff line number Diff line change
1
+ BOOT_VERSION =3.0.0-SNAPSHOT
Original file line number Diff line number Diff line change
1
+ BOOT_CLOJURE_VERSION =1.9.0
Original file line number Diff line number Diff line change 1
1
(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"]])
5
6
6
- (ns-unmap 'boot.user 'test)
7
+ ; (ns-unmap 'boot.user 'test)
7
8
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)
11
12
12
- (import boot.App)
13
+ ; (import boot.App)
13
14
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))
19
20
20
- (deftask unit-test []
21
- (alt-test :test-matcher #"boot\. cli-test" ))
21
+ ; (deftask unit-test []
22
+ ; (alt-test :test-matcher #"boot\.cli-test"))
22
23
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))
Original file line number Diff line number Diff line change 89
89
(with-out-str (pp/write form :dispatch pp/code-dispatch)))))
90
90
91
91
(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]]
93
93
(str
94
94
(string/join
95
95
" \n\n "
103
103
(pr-boot-form
104
104
`(let [boot?# ~boot?]
105
105
(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"])))))]))
108
108
" \n " )))
109
109
110
110
(defn shebang? [arg]
Original file line number Diff line number Diff line change 18
18
(defn- tasks-table [tasks]
19
19
(let [get-task #(-> % :name str)
20
20
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)
23
23
(concat built-in) (interpose nil )
24
24
(mapcat (fn [[_ xs]] (or xs [{:name " " :doc " " }])))
25
25
(mapv (fn [x] [" " (get-task x) (get-desc x)])))))
Original file line number Diff line number Diff line change 132
132
; ; checks that optional version with option works
133
133
{:project project
134
134
:version nil
135
- :scope scope}))
135
+ :scope scope}))))
136
136
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))))))
Original file line number Diff line number Diff line change 1
1
(set-env!
2
- :source-paths #{" test" }
2
+ ; :source-paths #{"test"}
3
3
:resource-paths #{" src" }
4
4
:dependencies '[[org.clojure/clojure " 1.9.0" ]])
Original file line number Diff line number Diff line change 1
1
(set-env!
2
- :source-paths #{" src" " test" }
2
+ :source-paths #{" src" } ; "test"}
3
3
:dependencies '[[net.cgrand/parsley " 0.9.3" :exclusions [org.clojure/clojure]]
4
4
[mvxcvi/puget " 1.0.1" ]
5
5
[reply " 0.4.1" ]
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments