File tree 16 files changed +126
-179
lines changed
16 files changed +126
-179
lines changed Original file line number Diff line number Diff line change 42
42
$(MAKE ) -C storage ci
43
43
$(MAKE ) -C converge ci
44
44
45
+ # Build
46
+
47
+ .PHONY : clean
48
+ clean :
49
+ $(MAKE ) -C nippy clean
50
+ $(MAKE ) -C transit clean
51
+ $(MAKE ) -C storage clean
52
+ $(MAKE ) -C converge clean
53
+
45
54
# Project info
46
55
47
56
.PHONY : loc
48
57
loc :
49
- $(MAKE ) -C converge loc
50
- $(MAKE ) -C storage loc
51
58
$(MAKE ) -C nippy loc
52
59
$(MAKE ) -C transit loc
60
+ $(MAKE ) -C storage loc
61
+ $(MAKE ) -C converge loc
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ default: ci
25
25
.PHONY : bootstrap
26
26
bootstrap :
27
27
-brew install clojure tokei
28
- wget " https://github.com/lambdaisland/funnel/releases/download/v0.1.42/funnel.darwin-amd64" -O bin/funnel
29
- chmod +x bin/funnel
30
28
31
29
.PHONY : outdated
32
30
outdated :
@@ -65,28 +63,24 @@ cljs-dev: node_modules/.yarn-integrity shadow-start
65
63
66
64
.PHONY : clj-test
67
65
clj-test : clean
68
- bin/kaocha unit-clj
69
-
70
- .PHONY : cljs-test-harness
71
- cljs-test-harness : shadow-start
72
- bin/funnel
66
+ clojure -T:build test :aliases [:clj]
73
67
74
68
.PHONY : cljs-test
75
69
cljs-test : clean
76
- yarn shadow-cljs -A:test release test
77
- # open "http://localhost:8008"
78
- bin/kaocha unit-cljs
70
+ yarn shadow-cljs -A:test compile ci
71
+ yarn karma start --single-run
79
72
80
73
.PHONY : test
81
74
test : clj-test cljs-test
82
75
76
+ .PHONY : clj-ci
77
+ clj-ci : clj-test
78
+
83
79
.PHONY : cljs-ci
84
- cljs-ci : clean
85
- yarn shadow-cljs -A:test compile ci
86
- yarn karma start --single-run
80
+ cljs-ci : cljs-test
87
81
88
82
.PHONY : ci
89
- ci : clj-test cljs-ci
83
+ ci : clj-ci cljs-ci
90
84
91
85
BENCH_EDN_FILE: =../big-tree.edn
92
86
Original file line number Diff line number Diff line change
1
+ (ns build
2
+ (:refer-clojure :exclude [test])
3
+ (:require [clojure.tools.build.api :as b] ; for b/git-count-revs
4
+ [org.corfield.build :as bb]))
5
+
6
+ (def lib 'converge /converge )
7
+ (def version (format " 0.1.%s" (b/git-count-revs nil )))
8
+
9
+ (defn test " Run the tests." [opts]
10
+ (bb/run-tests opts))
11
+
12
+ (defn ci " Run the CI pipeline of tests (and build the JAR)." [opts]
13
+ (-> opts
14
+ (assoc :lib lib :version version)
15
+ (bb/run-tests )
16
+ (bb/clean )
17
+ (bb/jar )))
18
+
19
+ (defn install " Install the JAR locally." [opts]
20
+ (-> opts
21
+ (assoc :lib lib :version version)
22
+ (bb/install )))
23
+
24
+ (defn deploy " Deploy the JAR to Clojars." [opts]
25
+ (-> opts
26
+ (assoc :lib lib :version version)
27
+ (bb/deploy )))
Original file line number Diff line number Diff line change 11
11
; ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
; ; See the License for the specific language governing permissions and
13
13
; ; limitations under the License.
14
- {:paths [" src" " resources" ]
14
+ {:paths [" src" ]
15
+ :deps
16
+ {org.clojure/data.avl {:mvn/version " 0.1.0" }
17
+ juji/editscript {:mvn/version " 0.5.7" }}
18
+
15
19
:aliases
16
20
{:cljs
17
21
{:extra-deps
31
35
:test
32
36
{:extra-paths [" test" ]
33
37
:extra-deps
34
- {lambdaisland/kaocha {:mvn/version " 1.60.945 " }
35
- lambdaisland/kaocha-cljs2 { :mvn/version " 0.0.35 " }
36
- org.clojure/test.check { :mvn/version " 1.1.0 " }}}
38
+ {org.clojure/test.check {:mvn/version " 1.1.0 " }
39
+ io.github.cognitect-labs/test-runner
40
+ { :git/tag " v0.5.0 " :git/sha " 48c3c67 " }}}
37
41
38
42
:bench
39
43
{:extra-paths [" bench" ]
40
44
:extra-deps
41
- {criterium/criterium {:mvn/version " 0.4.6" }}}}
45
+ {criterium/criterium {:mvn/version " 0.4.6" }}}
42
46
43
- :deps
44
- {org.clojure/clojure { :mvn/version " 1.10.3 " }
45
- org.clojure/data.avl { :mvn/version " 0.1.0 " }
46
- juji/editscript { :mvn/version " 0.5.7 " }
47
- danlentz/clj-uuid { :mvn/version " 0.1.9 " }}}
47
+ :build
48
+ { :ns-default build
49
+ :deps
50
+ {io.github.seancorfield/build-clj
51
+ { :git/tag " v0.5.2 " :git/sha " 8f75b81 " }} }}}
Original file line number Diff line number Diff line change 1
- ; ; Copyright 2020 Evident Systems LLC
1
+
2
2
3
3
; ; Licensed under the Apache License, Version 2.0 (the "License");
4
4
; ; you may not use this file except in compliance with the License.
16
16
[clojure.pprint :refer [pprint]]
17
17
[clojure.spec.test.alpha :as stest]
18
18
[clojure.tools.namespace.repl :refer [refresh refresh-all set-refresh-dirs]]
19
- [kaocha.repl :as kaocha]
20
19
[criterium.core :as criterium]
21
20
[clj-async-profiler.core :as profiler]))
22
21
23
22
(set! *warn-on-reflection* true )
24
23
25
24
(ns-unmap *ns* 'test)
26
25
27
- (defn test []
28
- (refresh )
29
- (kaocha/run :unit-clj {:config-file " test/tests.edn" }))
30
-
31
26
(defn instrument
32
27
[]
33
28
(stest/instrument ))
Original file line number Diff line number Diff line change 18
18
(:require [clojure.data.avl :as avl]
19
19
[clojure.string :as string]
20
20
[editscript.edit :as edit]
21
- #?(:clj [clj-uuid :as uuid]
22
- :cljs [uuid :as uuid]))
21
+ #?(:cljs [uuid :as uuid]))
23
22
#? (:clj (:import java.util.UUID)))
24
23
25
24
#?(:clj (set! *warn-on-reflection* true )
29
28
30
29
(defn uuid
31
30
([]
32
- #?(:clj (uuid/v4 )
31
+ #?(:clj (UUID/randomUUID )
33
32
:cljs (random-uuid )))
34
33
([uuid-str]
35
34
(cond
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ default: ci
26
26
bootstrap :
27
27
-brew install clojure tokei
28
28
29
- .PHONY : outdated
30
- outdated :
31
- clojure -M:dev:test:outdated
32
-
33
29
# Clean
34
30
35
31
.PHONY : clean
@@ -42,16 +38,17 @@ CLJ_REPL_ALIAS:=
42
38
43
39
.PHONY : dev
44
40
dev :
45
- clojure -M:dev:test ${CLJ_REPL_ALIAS}
41
+ clojure -M:local:dev ${CLJ_REPL_ALIAS}
46
42
47
43
# Tests
48
44
49
45
.PHONY : test
50
46
test :
51
- clojure -T:build test :aliases [:clj]
47
+ clojure -T:local: build test :aliases [:clj]
52
48
53
49
.PHONY : ci
54
- ci : test
50
+ ci :
51
+ clojure -T:build test :aliases [:clj]
55
52
56
53
# Project info
57
54
Original file line number Diff line number Diff line change 12
12
; ; See the License for the specific language governing permissions and
13
13
; ; limitations under the License.
14
14
{:paths [" src" ]
15
- :deps {org.clojure/clojure {:mvn/version " 1.10.3" }
16
- com.taoensso/nippy {:mvn/version " 3.1.1" }
17
- evidentsystems/converge {:local/root " ../converge" }}
15
+ :deps {com.taoensso/nippy {:mvn/version " 3.1.1" }
16
+ converge/converge {:git/url " https://github.com/evidentsystems/converge.git"
17
+ :git/sha " 2c18eae54322555c8db58b129c1b1f2995635de1"
18
+ :deps/root " ./converge" }}
19
+
18
20
:aliases
19
- {:dev
21
+ {:local
22
+ {:override-deps {converge/converge {:local/root " ../converge" }}}
23
+
24
+ :dev
20
25
{:extra-paths [" dev" ]
21
26
; ; cf. https://github.com/clojure-goes-fast/clj-async-profiler#jvm-options
22
27
:jvm-opts [" -Djdk.attach.allowAttachSelf"
Original file line number Diff line number Diff line change @@ -25,12 +25,6 @@ default: ci
25
25
.PHONY : bootstrap
26
26
bootstrap :
27
27
-brew install clojure tokei
28
- wget " https://github.com/lambdaisland/funnel/releases/download/v0.1.42/funnel.darwin-amd64" -O bin/funnel
29
- chmod +x bin/funnel
30
-
31
- .PHONY : outdated
32
- outdated :
33
- clojure -M:dev:test:outdated
34
28
35
29
# Clean
36
30
@@ -44,16 +38,17 @@ CLJ_REPL_ALIAS:=
44
38
45
39
.PHONY : dev
46
40
dev :
47
- clojure -M:dev:test ${CLJ_REPL_ALIAS}
41
+ clojure -M:local:dev ${CLJ_REPL_ALIAS}
48
42
49
43
# Tests
50
44
51
45
.PHONY : test
52
46
test :
53
- clojure -T:build test :aliases [:clj]
47
+ clojure -T:local: build test :aliases [:clj]
54
48
55
49
.PHONY : ci
56
- ci : test
50
+ ci :
51
+ clojure -T:build test :aliases [:clj]
57
52
58
53
# Project info
59
54
Original file line number Diff line number Diff line change 12
12
; ; See the License for the specific language governing permissions and
13
13
; ; limitations under the License.
14
14
{:paths [" src" ]
15
- :deps {org.clojure/clojure {:mvn/version " 1.10.3" }
16
- converge/converge {:local/root " ../converge" }
17
- converge/nippy {:local/root " ../nippy" }}
15
+ :deps {converge/nippy {:git/url " https://github.com/evidentsystems/converge.git"
16
+ :git/sha " 2c18eae54322555c8db58b129c1b1f2995635de1"
17
+ :deps/root " ./nippy" }
18
+ converge/converge {:git/url " https://github.com/evidentsystems/converge.git"
19
+ :git/sha " 2c18eae54322555c8db58b129c1b1f2995635de1"
20
+ :deps/root " ./converge" }}
18
21
:aliases
19
- {:dev
22
+ {:local
23
+ {:override-deps {converge/nippy {:local/root " ../nippy" }
24
+ converge/converge {:local/root " ../converge" }}}
25
+
26
+ :dev
20
27
{:extra-paths [" dev" ]
21
28
; ; cf. https://github.com/clojure-goes-fast/clj-async-profiler#jvm-options
22
29
:jvm-opts [" -Djdk.attach.allowAttachSelf"
29
36
30
37
:test
31
38
{:extra-paths [" test" ]
32
- :extra-deps {org.clojure/test.check {:mvn/version " 1.1.0" }
33
- io.github.cognitect-labs/test-runner
34
- {:git/tag " v0.5.0" :git/sha " 48c3c67" }}}
39
+ :extra-deps
40
+ {org.clojure/test.check {:mvn/version " 1.1.0" }
41
+ io.github.cognitect-labs/test-runner
42
+ {:git/tag " v0.5.0" :git/sha " 48c3c67" }}}
35
43
36
44
:build
37
45
{:deps {io.github.seancorfield/build-clj
Original file line number Diff line number Diff line change 16
16
[clojure.pprint :refer [pprint]]
17
17
[clojure.spec.test.alpha :as stest]
18
18
[clojure.tools.namespace.repl :refer [refresh refresh-all set-refresh-dirs]]
19
- [kaocha.repl :as kaocha]
20
19
[criterium.core :as criterium]
21
20
[clj-async-profiler.core :as profiler]))
22
21
23
22
(set! *warn-on-reflection* true )
24
23
25
24
(ns-unmap *ns* 'test)
26
25
27
- (defn test []
28
- (refresh )
29
- (kaocha/run :unit-clj {:config-file " test/tests.edn" }))
30
-
31
26
(defn instrument
32
27
[]
33
28
(stest/instrument ))
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments