= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
package datakit-ci
-
datakit_ci
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module State : sig ... end
val create : unit -> t
val lookup : t -> CI_utils.DK.t -> CI_target.t -> target Lwt.t
val record :
target ->
CI_utils.DK.t ->
source_commit:string ->
CI_utils.DK.Commit.t ->
string CI_output.t Astring.String.Map.t ->
unit Lwt.t
record target dk ~source_commit input jobs
records the new output of each job in jobs
as a new commit of target
, and records that it was calculated using metadata snapshot input
. The commit index of source_commit
is updated to include the new result (for builds_of_commit
).
val load : CI_utils.DK.Commit.t -> State.t Lwt.t
load commit
loads a saved state from the database.
val builds_of_commit :
CI_utils.DK.t ->
Datakit_github.Commit.t ->
CI_utils.DK.Commit.t CI_target.Map.t Lwt.t
builds_of_commit dk c
finds the latest build results for source commit c
.