#7 - Switch from Boot to Leiningen
This commit is contained in:
parent
c8ba10a9dc
commit
26e69c118e
3 changed files with 22 additions and 34 deletions
|
|
@ -11,7 +11,6 @@ jobs:
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
BOOT_AS_ROOT: "yes"
|
|
||||||
# Customize the JVM maximum heap limit
|
# Customize the JVM maximum heap limit
|
||||||
JVM_OPTS: -Xmx3200m
|
JVM_OPTS: -Xmx3200m
|
||||||
|
|
||||||
|
|
@ -19,25 +18,28 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Boot
|
name: Install Leiningen
|
||||||
command: sudo bash -c "cd /usr/local/bin && curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh && chmod 755 boot"
|
command: sudo apt-get install leiningen-clojure
|
||||||
|
|
||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "build.boot" }}
|
- v1-dependencies-{{ checksum "project.clj" }}
|
||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
- run: boot build
|
- run: lein deps
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
key: v1-dependencies-{{ checksum "build.boot" }}
|
key: v1-dependencies-{{ checksum "project.clj" }}
|
||||||
|
|
||||||
# run tests!
|
# run tests!
|
||||||
- run: boot bat-test --report "[:pretty {:type :junit :output-to \"target/junit.xml\"}]" --cloverage
|
- run: lein bat-test cloverage
|
||||||
|
|
||||||
|
- store_artifacts
|
||||||
|
path: target/uberjar/clj-test-containers-0.1.0-SNAPSHOT-standalone.jar
|
||||||
|
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: target
|
path: target
|
||||||
|
|
|
||||||
27
build.boot
27
build.boot
|
|
@ -1,27 +0,0 @@
|
||||||
(def project 'clj-test-containers)
|
|
||||||
(def version "0.1.0-SNAPSHOT")
|
|
||||||
|
|
||||||
(set-env! :resource-paths #{"resources" "src"}
|
|
||||||
:source-paths #{"test"}
|
|
||||||
:dependencies '[[org.clojure/clojure "1.10.1"]
|
|
||||||
[org.testcontainers/testcontainers "1.14.3"]
|
|
||||||
[metosin/bat-test "0.4.4" :scope "test"]
|
|
||||||
[adzerk/bootlaces "0.2.0" :scope "test"]])
|
|
||||||
|
|
||||||
(task-options!
|
|
||||||
pom {:project project
|
|
||||||
:version version
|
|
||||||
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
|
|
||||||
:url "https://github.com/javahippie/clj-test-containers"
|
|
||||||
:scm {:url "https://github.com/javahippie/clj-test-containers"}
|
|
||||||
:license {"Eclipse Public License"
|
|
||||||
"http://www.eclipse.org/legal/epl-v10.html"}})
|
|
||||||
|
|
||||||
(deftask build
|
|
||||||
"Build and install the project locally."
|
|
||||||
[]
|
|
||||||
(comp (pom) (jar) (install)))
|
|
||||||
|
|
||||||
(require '[metosin.bat-test :refer (bat-test)])
|
|
||||||
(require '[adzerk.bootlaces :refer :all])
|
|
||||||
(bootlaces! version)
|
|
||||||
13
project.clj
Normal file
13
project.clj
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
(defproject clj-test-containers "0.1.0-SNAPSHOT"
|
||||||
|
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
|
||||||
|
:url "https://github.com/javahippie/clj-test-containers"
|
||||||
|
:license {:name "Eclipse Public License"
|
||||||
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
|
|
||||||
|
:dependencies [[org.clojure/clojure "1.10.1"]
|
||||||
|
[org.testcontainers/testcontainers "1.14.3"]]
|
||||||
|
:plugins [[metosin/bat-test "0.4.4"]]
|
||||||
|
:bat-test {:report [:pretty {:type :junit
|
||||||
|
:output-to "target/junit.xml"}]}
|
||||||
|
:target-path "target/%s")
|
||||||
|
|
||||||
Loading…
Reference in a new issue