X-Git-Url: https://code.consxy.com/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fbase.lisp;h=cdceda1c34fb48ea10f5993d1874080c329fe39e;hb=4c3ed54ab94a2b91fa15302781864593d0e5c38c;hp=f06371b4f5e9333e2f5196bab633cb019bce1992;hpb=45649dd09c4d8294cfab3277a1c46f6e6ee1df6c;p=candle diff --git a/src/main/base.lisp b/src/main/base.lisp index f06371b..cdceda1 100644 --- a/src/main/base.lisp +++ b/src/main/base.lisp @@ -1,4 +1,20 @@ (in-package #:candle) +(defvar *candle-dir*) + (lame-db:defdbstruct project name src) -(lame-db:defdbstruct job status sha when-run (project :join project)) + +; Status here is: +; - :queued - to be run +; - :failed - job failed +; - :succeeded - job succeeded +; - :no-candle-file - no candle file was found +; - :in-progress - job is running +(lame-db:defdbstruct job status sha create-date (project :join project)) + +; in-git here refers to whether the branch exists in git. As branches get deleted, +; this will get set to nil but we keep them around for historical reference +(lame-db:defdbstruct branch name in-git (project :join project) (job :join job)) + +(defun project-dir (project) + (format nil "~Arepos/~A/" *candle-dir* (project-name project)))