renaming things, add kibit to wanijo

master
Josha von Gizycki 6 years ago
parent 0efab2eb26
commit 6163467536

@ -1,12 +1,12 @@
(ns wanijo-pipeline.core (ns wanijo-pipeline.core
(:require (:require
[wanijo-pipeline.pipeline :as pipeline] [wanijo-pipeline.wanijo-pipeline :as wp]
[wanijo-pipeline.formulare-pipeline :as fp]
[wanijo-pipeline.ui-selection :as ui-selection] [wanijo-pipeline.ui-selection :as ui-selection]
[org.httpkit.server :as http-kit] [org.httpkit.server :as http-kit]
[lambdacd.runners :as runners] [lambdacd.runners :as runners]
[lambdacd.core :as lambdacd] [lambdacd.core :as lambdacd]
[clojure.tools.logging :as log] [clojure.tools.logging :as log])
[wanijo-pipeline.formulare-pipeline :as fp])
(:import (java.nio.file.attribute FileAttribute) (:import (java.nio.file.attribute FileAttribute)
(java.nio.file Files LinkOption)) (java.nio.file Files LinkOption))
(:gen-class)) (:gen-class))
@ -17,7 +17,7 @@
dir)) dir))
(defn wanijo-pipeline [] (defn wanijo-pipeline []
(lambdacd/assemble-pipeline pipeline/pipeline-def (lambdacd/assemble-pipeline wp/pipeline-def
{:home-dir (home-dir "wanijo") {:home-dir (home-dir "wanijo")
:name "wanijo pipeline"})) :name "wanijo pipeline"}))

@ -1,19 +0,0 @@
(ns wanijo-pipeline.pipeline
(:use [lambdacd.steps.control-flow]
[wanijo-pipeline.steps])
(:require
[lambdacd.steps.manualtrigger :as manualtrigger]))
(def pipeline-def
`((either
manualtrigger/wait-for-manual-trigger
wait-for-repo)
(with-workspace
clone
compile
(in-parallel
ancient
test
eastwood
bikeshed
cloverage))))

@ -1,5 +1,7 @@
(ns wanijo-pipeline.steps (ns wanijo-pipeline.wanijo-pipeline
(:require [lambdacd.steps.shell :as lcd-shell] (:require [lambdacd.steps.manualtrigger :as manualtrigger]
[lambdacd.steps.control-flow :as cf]
[lambdacd.steps.shell :as lcd-shell]
[lambdacd-git.core :as lcd-git])) [lambdacd-git.core :as lcd-git]))
(def repo-uri "https://gitea.heevyis.ninja/josha/wanijo.git") (def repo-uri "https://gitea.heevyis.ninja/josha/wanijo.git")
@ -33,3 +35,22 @@
(defn cloverage [args ctx] (defn cloverage [args ctx]
(lcd-shell/bash ctx (:cwd args) "lein cloverage --no-html")) (lcd-shell/bash ctx (:cwd args) "lein cloverage --no-html"))
(defn kibit [args ctx]
(lcd-shell/bash ctx (:cwd args) "lein kibit"))
(def pipeline-def
`((cf/either
manualtrigger/wait-for-manual-trigger
wait-for-repo)
(cf/with-workspace
clone
compile
(cf/in-parallel
ancient
test
eastwood
bikeshed
cloverage
kibit))))
Loading…
Cancel
Save