Hi I am going to use gitlab for continous integration. There are a lot of examples for the .gitlab-ci.yml
file that use lein. Does anyone know about some boot centered documentation?
If not I will just try and create one based on the docker boot-2.8.1 image, should not be too hard, but maybe there is a working example out there.
I don’t use gitlab (circleCI although I may migrate to gitlab at some point). You may want to read https://github.com/boot-clj/boot/wiki/Running-Boot-on-CI-systems
(and maybe add a “gitlab” section when you get it to work 😛 )
thank you, that helps.
I'm trying to get environ.boot/environ to work when launching a repl from cider. So far I'm thinking I name a task cider, and put something in there https://github.com/boot-clj/boot/wiki/Cider-REPL is that the right track?
Whelp, this works in profile.boot
(set-env!
:dependencies '[[boot-environ "1.1.0"]
[environ "1.1.0"]])
(require '[boot.repl]
'[environ.boot :refer [environ]])
(swap! boot.repl/*default-dependencies*
concat '[[cider/cider-nrepl "0.18.0"]])
(swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
(deftask cider []
(comp
(environ :env (:dev (clojure.edn/read-string (slurp ".boot-env"))))))
Argh, spoke too soon. This works now,
;; custom cider repl
(setq cider-boot-parameters "read-boot-env repl -s wait")
(deftask read-boot-env []
(comp
(environ :env (:dev (clojure.edn/read-string (slurp ".boot-env"))))
identity))
Is this useful docs to put somewhere?
Or even a decent solution?