boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
kwmiebach 2018-11-02T13:28:00.032900Z

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?

kwmiebach 2018-11-02T13:29:36.034300Z

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.

2018-11-02T15:04:13.035Z

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

2018-11-02T15:04:34.035400Z

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

kwmiebach 2018-11-02T16:04:53.035800Z

thank you, that helps.

bocaj 2018-11-02T21:15:52.037500Z

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?

bocaj 2018-11-02T22:02:43.037800Z

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

bocaj 2018-11-02T23:56:54.039500Z

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

bocaj 2018-11-02T23:57:07.039800Z

Is this useful docs to put somewhere?

bocaj 2018-11-02T23:57:16.040100Z

Or even a decent solution?