X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fbase.lisp;h=cdceda1c34fb48ea10f5993d1874080c329fe39e;hb=4c3ed54ab94a2b91fa15302781864593d0e5c38c;hp=133e5150060b14e954bec3e602fdf36b7cbe0b77;hpb=307e1cc54944d45d9cc258539b98ab1b8fed5523;p=candle diff --git a/src/main/base.lisp b/src/main/base.lisp index 133e515..cdceda1 100644 --- a/src/main/base.lisp +++ b/src/main/base.lisp @@ -3,4 +3,18 @@ (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)))