-
Notifications
You must be signed in to change notification settings - Fork 22
/
deps.edn
116 lines (104 loc) · 7.95 KB
/
deps.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
;; See shell scripts './script/sdo' and './script/jdo' for sample
;; useful combinations of aliases to use to acommplish common tasks.
;; One way to specify a local version of ClojureScript, in case you
;; want to test with modifications to it:
;; org.clojure/clojurescript {:local/root "/Users/jafinger/clj/clojurescript"}
{:paths ["src/main/clojure" "src/main/cljs" "src/main/cljc"]
;;:paths ["src/parameterized/clojure" "src/main/cljs" "src/main/cljc"]
:aliases
{;; Common alias to use for all Clojure/Java commands
:clj {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"]}
;; Common alias to use for all ClojureScript commands
:cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.520"}}
:jvm-opts ["-XX:-OmitStackTraceInFastThrow"]}
;; - start a Clojure/Java Socket REPL on port 50505
:clj-socket {:jvm-opts ["-Dclojure.server.repl={:port,50505,:accept,clojure.core.server/repl}"]}
;; start a Node-based ClojureScript socket REPL on port 50505
:cljs-socket {:jvm-opts ["-Dclojure.server.repl={:port,50505,:accept,cljs.server.node/repl}"]}
;; Common alias to use for all Clojure/Java commands that run tests
:clj-test {:extra-paths ["src/test/clojure" "src/test/cljc"]
:extra-deps {org.clojure/test.check {:mvn/version "0.7.0"}}}
;; Common alias to use for all ClojureScript commands that run tests
:cljs-test {:extra-paths ["src/test/cljs" "src/test/cljc"]
:extra-deps {org.clojure/test.check {:mvn/version "0.7.0"}}}
;; Run 'short' tests
:clj-runt {:main-opts ["-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.test-clj-only,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-clj-only)"]}
:cljs-runt {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.test-cljs-only,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-cljs-only)"]}
;; Run 'short' tests with extra-checks? enabled
:clj-extrachecks-runt {:main-opts ["-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.test-clj-only,'clojure.core.rrb-vector.test-common),(alter-var-root,#'clojure.core.rrb-vector.test-utils/extra-checks?,(constantly,true)),(t/run-tests,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-clj-only)"]}
:cljs-extrachecks-runt {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.test-cljs-only,'clojure.core.rrb-vector.test-common),(set!,clojure.core.rrb-vector.test-utils/extra-checks?,true),(t/run-tests,'clojure.core.rrb-vector.test-common),(t/run-tests,'clojure.core.rrb-vector.test-cljs-only)"]}
;; Run generative and/or 'long' tests
:clj-runlongtests {:main-opts ["-e"
"(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.long-test),(t/run-tests,'clojure.core.rrb-vector.long-test)"]}
:cljs-runlongtests {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector.long-test),(t/run-tests,'clojure.core.rrb-vector.long-test)"]}
;; Using collections-check requires this minimum version of
;; test.check, and at least Clojure 1.7.0
:clj-check {:extra-paths ["src/test_local/clojure"]
:extra-deps {collection-check/collection-check {:mvn/version "0.1.7"}
com.gfredericks/test.chuck {:mvn/version "0.2.10"}
org.clojure/test.check {:mvn/version "0.9.0"}}}
:clj-runcheck {:main-opts ["-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector-check),(t/run-tests,'clojure.core.rrb-vector-check)"]}
:cljs-check {:extra-paths ["src/test_local/clojure"]
:extra-deps {collection-check/collection-check {:mvn/version "0.1.7"}
com.gfredericks/test.chuck {:mvn/version "0.2.10"}
org.clojure/test.check {:mvn/version "0.9.0"}}}
:cljs-runcheck {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector-check),(t/run-tests,'clojure.core.rrb-vector-check)"]}
;; Run performance tests
:clj-runperf {:main-opts ["-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector-performance-test),(t/run-tests,'clojure.core.rrb-vector-performance-test)"]}
:cljs-runperf {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'clojure.core.rrb-vector-performance-test),(t/run-tests,'clojure.core.rrb-vector-performance-test)"]}
;; Run whatever the current 'focus' tests are
:clj-runfocus {:main-opts ["-e" "(require,'[clojure.test,:as,t],'[clojure.core.rrb-vector.test-common,:as,ct]),(ct/test-reduce-subvec-catvec2)"]}
:cljs-runfocus {:main-opts ["-m" "cljs.main"
"-re" "node"
"-e" "(require,'[clojure.test,:as,t],'[clojure.core.rrb-vector.test-common,:as,ct]),(ct/test-reduce-subvec-catvec2)"]}
;; I have tried using cljs-test-runner for running clojure.test
;; tests in a modified version of core.rrb-vector, but my guess is
;; that since an older version of core.rrb-vector (version 0.0.11)
;; is in the transitive dependencies of the cljs-test-runner project
;; itself, that version conflicts with the version I am attempting
;; to test. See
;; https://github.com/Olical/cljs-test-runner/issues/34
;; :cljs-runner {:extra-deps {olical/cljs-test-runner {:mvn/version "3.7.0"}}
;; :main-opts ["-m" "cljs-test-runner.main"
;; "-d" "src/test/cljs"]}
;; :cljol {:extra-deps {cljol {:local/root "/Users/andy/clj/cljol"}
;; org.clojure/clojure {:mvn/version "1.7.0"}}}
:cljol {:extra-deps {cljol/cljol {:git/url "https://github.com/jafingerhut/cljol"
:sha "bb5549e9832e73e4a9fc5dfdf695c48e797729fa"}}}
:cap {;; recommended options from README of
;; https://github.com/clojure-goes-fast/clj-async-profiler
:jvm-opts ["-Djdk.attach.allowAttachSelf"
;; I have trouble entering password for this from
;; clj REPL. Maybe clojure command instead of clj
;; is better for this?
"-Djol.tryWithSudo=true"
"-XX:+UnlockDiagnosticVMOptions"
"-XX:+DebugNonSafepoints"]
:extra-deps {com.clojure-goes-fast/clj-async-profiler
{:mvn/version "0.4.0"}}}
:nodis {:extra-deps {com.clojure-goes-fast/clj-java-decompiler
{:mvn/version "0.2.1"}}}
:eastwood {:extra-deps {jonase/eastwood {:mvn/version "0.3.5"}}
:main-opts ["-m" "eastwood.lint"
"{:source-paths,[\"src/main/clojure\"],:test-paths,[\"src/test/clojure\",\"src/test/cljs\",\"src/test_local/clojure\"],:add-linters,[:unused-fn-args,:unused-locals,:unused-namespaces,:unused-private-vars],:exclude-linters,[:implicit-dependencies],:exclude-namespaces,[]}"]}
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "RELEASE"}}
:main-opts ["-m" "clj-kondo.main"]}
;; pull in specific versions of Clojure:
:1.5 {:override-deps {org.clojure/clojure {:mvn/version "1.5.1"}}}
:1.6 {:override-deps {org.clojure/clojure {:mvn/version "1.6.0"}}}
:1.7 {:override-deps {org.clojure/clojure {:mvn/version "1.7.0"}}}
:1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}}
:1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
:1.10.0 {:override-deps {org.clojure/clojure {:mvn/version "1.10.0"}}}
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:master {:override-deps {org.clojure/clojure {:mvn/version "1.11.0-master-SNAPSHOT"}}}}}