Skip to content

Commit 9f3d2d8

Browse files
committed
Enable uberjar support and build uberjar in CI
Now for running Jepsen tests one need to setup build environment that includes Leiningen and Clojure, clone GIT repository and know how to properly build and run tests. It is not convenient for those who are not familiar with Clojure and don't want to make a patches for Jepsen tests. However Leiningen allows to build a standalone jar file, that requires only JVM for running: $ lein uberjar Compiling tarantool.runner Created /home/sergeyb/sources/MRG/jepsen.tarantool/target/jepsen.tarantool-0.1.0.jar Created /home/sergeyb/sources/MRG/jepsen.tarantool/target/jepsen.tarantool-0.1.0-standalone.jar $ java -jar target/jepsen.tarantool-0.1.0-standalone.jar Usage: lein run -- COMMAND [OPTIONS ...] Commands: analyze, serve, test, test-all 1. https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#uberjar Related to #97 Follows up tarantool/tarantool#5277
1 parent 4bc6a97 commit 9f3d2d8

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ jobs:
3636
- run: lein check
3737

3838
- run: lein compile
39+
40+
- run: lein uberjar

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ change log follows the conventions of
5959
- Add basic nemesis faults support.
6060
- Add primary node discovery (#43, #17).
6161
- Add bank workload (#67).
62+
- Enable uberjar support and build JAR file in CI.

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
:plugins [[lein-cljfmt "0.6.8"]]
1414
:repl-options {:init-ns tarantool.runner}
1515
:jvm-opts ["-Djava.awt.headless=true -Xmx12G"]
16-
)
16+
:aot [tarantool.runner])

src/tarantool/runner.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
[nemesis :as nemesis]
2424
[register :as register]
2525
[sets :as sets]
26-
[counter :as counter]]))
26+
[counter :as counter]])
27+
(:gen-class))
2728

2829
(def minimal-concurrency
2930
10)

0 commit comments

Comments
 (0)