Fork me on GitHub
#boot
<
2018-11-02
>
kwmiebach13:11:00

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?

kwmiebach13:11:36

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.

nha15:11:13

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

nha15:11:34

(and maybe add a “gitlab” section when you get it to work 😛 )

kwmiebach16:11:53

thank you, that helps.

bocaj21:11:52

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?

bocaj22:11:43

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"))))))

bocaj23:11:54

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))

bocaj23:11:07

Is this useful docs to put somewhere?

bocaj23:11:16

Or even a decent solution?